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

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

rbqvq
Copy link
Contributor

@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.

@rbqvq
Copy link
Contributor 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

@feckert
Copy link
Member

feckert commented Jan 24, 2025

@rbqvq LGTM
Please rebase the PKG_RELEASE number has changed since your PR.

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

Signed-off-by: Coia Prant <[email protected]>
@rbqvq
Copy link
Contributor Author

rbqvq commented Jan 24, 2025

@rbqvq LGTM Please rebase the PKG_RELEASE number has changed since your PR.

Fixed.

@feckert feckert merged commit 9cd00fb into openwrt:master Jan 24, 2025
12 checks passed
@feckert
Copy link
Member

feckert commented Jan 24, 2025

Thanks merged!

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.

3 participants