You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Syncthing announces address of interface which is down #7458
bugA problem with current functionality, as opposed to missing functionality (enhancement)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
Noticed this behaviour yesterday on my Windows machine. Syncthing seems to ignore if the interface is actually useable because it keeps announcing the manually configured IP of my winTUN interface.
It also announces a bunch of link-local 169.254.0.0/16 addresses but i can't ping any of them so i suspect that they are also from some interface but couldn't find anything in ipconfig /all
Yeah, we use net.InterfaceAddrs which I think doesn't care, we should probably iterate interfaces manually and check the relevant flags ourselves.
(That said, the only definition of "usable" we can implement is "does it have FlagUp set". That doesn't necessary mean it's physically connected to anything, or to anything useful, or is a physical interface to begin with, etc.)
Please note that sometimes it is desirable to announce a non-local IP address. I use this to announce the IP address of a 6tunnel endpoint that converts IPv4 traffic for my IPv6-only Syncthing installation. Hence, I would prefer "usable" over "local interface address".
Syncthing is only able to collect interface addresses and external addresses resolved via STUN. I guess that your usecase works because STUN is able detect the public IPv4 of your tunnel?
Changing the behaviour for local interfaces won't impact STUN.
Syncthing is only able to collect interface addresses and external addresses resolved via STUN. I guess that your usecase works because STUN is able detect the public IPv4 of your tunnel?
Changing the behaviour for local interfaces won't impact STUN.
Frankly, I added the address manually in the settings. It should not be filtered out, though.
bugA problem with current functionality, as opposed to missing functionality (enhancement)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
Activity
calmh commentedon Mar 12, 2021
Yeah, we use net.InterfaceAddrs which I think doesn't care, we should probably iterate interfaces manually and check the relevant flags ourselves.
(That said, the only definition of "usable" we can implement is "does it have
FlagUpset". That doesn't necessary mean it's physically connected to anything, or to anything useful, or is a physical interface to begin with, etc.)bt90 commentedon Mar 12, 2021
"Usable" is probably the wrong term. Checking if the interface is considered up is exactly what i had in mind.
juhrmann commentedon Mar 17, 2021
Please note that sometimes it is desirable to announce a non-local IP address. I use this to announce the IP address of a 6tunnel endpoint that converts IPv4 traffic for my IPv6-only Syncthing installation. Hence, I would prefer "usable" over "local interface address".
bt90 commentedon Mar 17, 2021
Syncthing is only able to collect interface addresses and external addresses resolved via STUN. I guess that your usecase works because STUN is able detect the public IPv4 of your tunnel?
Changing the behaviour for local interfaces won't impact STUN.
juhrmann commentedon Mar 17, 2021
Frankly, I added the address manually in the settings. It should not be filtered out, though.
bt90 commentedon Aug 13, 2021
https://app.bountysource.com/issues/97258542-syncthing-announces-address-of-interface-which-is-down
Would be nice if you could also look into adding support for #7456
bt90 commentedon Jan 12, 2022
Added $10 to get rid of this 😄
lib/osutil: only announce address of interfaces which are up fixes sy…
lib/osutil: only announce address of interfaces which are up (fixes s…
lib/osutil: only announce address of interfaces which are up (fixes s…
lib/osutil: only announce address of interfaces which are up (fixes s…
lib/osutil: only announce address of interfaces which are up (fixes s…
lib/osutil: Only announce address of interfaces which are up (fixes #…
bt90 commentedon Jul 7, 2022
@Zahrun https://app.bountysource.com/issues/97258542-syncthing-announces-address-of-interface-which-is-down :)
Merge branch 'main' into owners2
Merge branch 'main' into xattr