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
lib/osutil: Only announce address of interfaces which are up (fixes #7458) #8422
Conversation
Will this still cause interfaces to be announced when they come up later? Is there a periodic check for new addresses? Sorry I didn't have a chance to look at the code yet. |
I think lib/connections/service.go manages changes in network configurations, but maybe someone who knows can confirm |
It should. How would address changes be picked up otherwise? |
I assumed it's implemented like that. Just sometimes asking the obvious questions uncovers things everybody assumed but are actually not true. Having glanced at the diff now I'm sure at least this PR doesn't affect that behavior in any way. |
Good point! |
* main: gui, man, authors: Update docs, translations, and contributors cmd/syncthing/cli: Add show discovery command (fixes syncthing#8007) (syncthing#8378) gui, man, authors: Update docs, translations, and contributors lib/osutil: Only announce address of interfaces which are up (fixes syncthing#7458) (syncthing#8422) gui: Fix missing span end tag and missing nbsp semicolon in HTML (syncthing#8419)
* main: cmd/syncthing, lib/config: Remove restartOnWakeup option & functionality (fixes syncthing#8448) (syncthing#8449) gui: Remove blank meta tags (syncthing#8362) gui: Add device sync status (fixes syncthing#7981) (syncthing#8401) gui: Fix detailed staggered versioning information in folder info (ref syncthing#8348) (syncthing#8433) all: Support syncing ownership (fixes syncthing#1329) (syncthing#8434) gui, man, authors: Update docs, translations, and contributors lib/model, lib/config: Apply sensible defaults for auto-accepted encrypted folder (fixes syncthing#8296) (syncthing#8427) gui: Move filesystem watcher explanation from tooltip to help block (syncthing#8432) gui: Use discovered IDs from cache when adding a new remote device (syncthing#8382) build: Update goleveldb (syncthing#8440) gui, man, authors: Update docs, translations, and contributors cmd/syncthing/cli: Add show discovery command (fixes syncthing#8007) (syncthing#8378) gui, man, authors: Update docs, translations, and contributors lib/osutil: Only announce address of interfaces which are up (fixes syncthing#7458) (syncthing#8422) gui: Fix missing span end tag and missing nbsp semicolon in HTML (syncthing#8419)
Purpose
Syncthing will only announce address of interfaces which are up (fixes #7458)
Testing
Syncthing compiles
Check that Syncthing is announcing only addresses of interfaces which are up
Documentation
Not sure if the change should be mentioned in the documentation