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
Fix coturn to also come properly up if dhcpcd is used. #29415
Conversation
cc @Ralith |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's better to use the network-online.target
instead. dhcpcd.service
, if enabled, will be wanted by network-online.target
.
I think Is there a reason not to just listen on the wildcard addresses? With a truly dynamic IP, I'm not sure how usefully you could do anything else. |
I don't know, why coturn does not simply use a wild card address - by default it seems to gather all addresses and listens on them, if an ip is missing, it just won't listen there. With a truly dynamic ip this won't work anyway, that's correct. But in my case it is only semi-dynamic, just automated configuration really. In any case, I will look into network-online.target and will fix this PR accordingly. |
The docs only say, not to use it to liberally in order for not delaying the boot. If coturn just won't work correctly otherwise, I would not say that's to liberal. |
properly also in case dhcpcd being used. Without network-online.target, coturn will fail to listen on addresses that come up with dhcpcd.
@Ralith thanks for the doc pointer, that was really helpful! It seems coturn is not a well written service and we have to deal with it, thus the need of network-online.target. I fixed the PR accordingly! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you both for the investigation! I agree that network-online.target
is not the ideal solution but in this case we should use it.
Also fixed another annoyance/bug with |
properly also in case dhcpcd being used. Without network-online.target, coturn will fail to listen on addresses that come up with dhcpcd. (cherry picked from commit a9f6022)
#Without dhpcpd.service in after, coturn will fail to listen on addresses that
come up with dhcpcd.
Motivation for this change
coturn won't come up correctly if ip addresses are set dynamically.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)