Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ddns-scripts: get l3 device for bind network using curl #25756

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rbqvq
Copy link

@rbqvq rbqvq commented Jan 15, 2025

If pppoe is used for wan access. script set 'eth1' as interface for curl call. The correct interface is however 'pppoe-wan'.

These scripts use 'network_get_physdev' function to get real device for bind_network but this is wrong. We need instead the l3_device of the the logical interface.

In case if we don't use pppoe connection - 'l3_device' is equal to real device.

Follow P/R:
#14431

And please backport to current stable version.

@1715173329
Copy link
Member

It seems like you have duplicated Signed-off-by block in your commit message, please remove one.

If pppoe is used for wan access. script set 'eth1' as interface for curl
call. The correct interface is however 'pppoe-wan'.

These scripts use 'network_get_physdev' function to get real device for
bind_network but this is wrong. We need instead the l3_device of the the
logical interface.

In case if we don't use pppoe connection - 'l3_device' is equal to real device.

Follow P/R:
 openwrt#14431

Signed-off-by: Coia Prant <coiaprant@gmail.com>
@rbqvq
Copy link
Author

rbqvq commented Jan 19, 2025

It seems like you have duplicated Signed-off-by block in your commit message, please remove one.

Oh, thats right. It was fixed now, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants