syncthing/lib/config
Jakob Borg c5e0c47989 lib/connections, lib/model, gui: Specify allowed networks per device (fixes #219)
This adds a new config AllowedNetworks per device, which when set should
contain a list of network prefixes (192.168.0.0/126 etc) that are
allowed for the given device. The connection service will not attempt
connections to addresses outside of the given networks and incoming
connections will be rejected as well.

I've added the config to the normal device editor and shown it (when
set) in the device summary on the main screen.

There's a unit test for the IsAllowedNetwork method, I've done some
manual sanity testing on top of that.

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4073
2017-04-01 09:52:31 +00:00
..
testdata lib/config, lib/connections: Configurables for KCP, disable by default 2017-03-07 12:55:50 +00:00
commit_test.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
config_test.go lib/connections, lib/model, gui: Specify allowed networks per device (fixes #219) 2017-04-01 09:52:31 +00:00
config.go lib/connections, lib/model, gui: Specify allowed networks per device (fixes #219) 2017-04-01 09:52:31 +00:00
debug.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
deviceconfiguration.go lib/connections, lib/model, gui: Specify allowed networks per device (fixes #219) 2017-04-01 09:52:31 +00:00
folderconfiguration.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
foldertype.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
guiconfiguration.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
optionsconfiguration.go lib/config: Update default update interval for KCP 2017-03-08 14:18:39 +01:00
pullorder.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
versioningconfiguration.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
wrapper.go lib/config, lib/connections: Configurables for KCP, disable by default 2017-03-07 12:55:50 +00:00