syncthing/lib
Jakob Borg 9b660c1959
lib/config, lib/connections: Configurable protocol priority (ref #8626) (#8868)
This makes the various protocol priorities configurable among the other
options. With this, it's possible to prefer QUIC over TCP for WAN
connections, for example. Both sides need to be similarly configured for
this to work properly.

The default priority order remains the same as previously (TCP, QUIC,
Relay, with LAN better than WAN).

To make this happen I made each dialer & listener more priority aware,
and moved the check for whether a connection is LAN or not into the
dialer / listener -- this is the new "lanChecker" type that's passed
around.
2023-04-16 14:54:28 +02:00
..
api lib/api: Expose blocksHash in file info (#8810) 2023-03-06 15:37:15 +01:00
assets lib/assets: MIME types, time formats (#8351) 2022-05-22 22:10:18 +02:00
beacon all: Unused args, retvals, assignments (#7926) 2021-09-08 00:11:16 +02:00
build all: Add build constants for runtime.GOOS comparisons (#8442) 2022-07-28 19:36:39 +02:00
config lib/config, lib/connections: Configurable protocol priority (ref #8626) (#8868) 2023-04-16 14:54:28 +02:00
connections lib/config, lib/connections: Configurable protocol priority (ref #8626) (#8868) 2023-04-16 14:54:28 +02:00
db lib/api: Expose blocksHash in file info (#8810) 2023-03-06 15:37:15 +01:00
dialer lib: Removal global connection registry (#8254) 2022-04-09 16:04:56 +02:00
discover lib/discover: Don't leak relay-tokens to discovery (#8762) 2023-03-04 12:16:57 +01:00
events all: Remove unused method receivers (#8462) 2022-07-28 17:32:45 +02:00
fs all: Fix typos found by codespell (#8833) 2023-03-21 08:07:28 +01:00
httpcache cmd/stupgrades: Cache should apply to HEAD as well as GET 2023-02-22 12:22:52 +01:00
ignore lib/fs: Use io/fs errors as recommended in std lib (#8726) 2022-12-21 23:42:22 +01:00
locations gui, api: Show internal config and state paths (fixes #8323) (#8324) 2022-08-10 08:25:13 +02:00
logger cmd/syncthing, lib/logger: Add date to default log format (fixes #8272) (#8273) 2022-04-15 07:46:14 +04:00
model lib/model: Improve path generation for auto accepted folders (fixes #8859) (#8860) 2023-04-11 13:07:22 +02:00
nat all: Unused parameter should be replaced by underscore (#8464) 2022-07-28 17:17:29 +02:00
osutil Only fail after chmod error if permissions differ (e.g. on config file) (#8771) 2023-02-20 15:41:10 +01:00
pmp lib: Factor out getting IP address from net.Addr (#8538) 2022-09-14 08:44:46 +02:00
protocol lib/protocol: Handle encrypted requests without encrypted hash (fixes #8277) (#8827) 2023-03-18 10:22:18 +01:00
rand all: Remove unused method receivers (#8462) 2022-07-28 17:32:45 +02:00
rc all: Remove unused method receivers (#8462) 2022-07-28 17:32:45 +02:00
relay cmd/strelaysrv: Add optional auth token (fixes #3987) (#8561) 2022-10-01 20:41:02 +01:00
scanner all: Use new Go 1.19 atomic types (#8772) 2023-02-07 12:07:34 +01:00
sha256 all: Use crypt/rand through its buffered version, but not in benchmarks (#7420) 2021-03-02 19:17:20 +01:00
signature all: Use crypt/rand through its buffered version, but not in benchmarks (#7420) 2021-03-02 19:17:20 +01:00
stats all: Truncate some timestamps (fixes #7457) (#7459) 2021-03-12 10:35:10 +01:00
stun all: Use new Go 1.19 atomic types (#8772) 2023-02-07 12:07:34 +01:00
svcutil Handle relay connect timeout (fixes #8749) (#8755) 2023-01-19 11:15:18 +01:00
sync all: Use new Go 1.19 atomic types (#8772) 2023-02-07 12:07:34 +01:00
syncthing lib/syncthing: Handle successful global migration (fixes #8851) (#8852) 2023-04-05 15:25:55 +02:00
testutils all: Remove unused method receivers (#8462) 2022-07-28 17:32:45 +02:00
tlsutil lib/tlsutil: Use crypto.Signer interface (#8526) 2022-09-09 14:22:38 +02:00
upgrade all: Fix various user-facing and non-user-facing typos (#8509) 2022-08-23 15:44:11 +02:00
upnp lib: Factor out getting IP address from net.Addr (#8538) 2022-09-14 08:44:46 +02:00
ur lib/ur: Fix custom releases URL comparison 2023-03-24 09:15:12 +01:00
util all: Unused parameter should be replaced by underscore (#8464) 2022-07-28 17:17:29 +02:00
versioner lib/versioner: Fix error in Trashcan restore (fixes: #7965) (#8549) 2022-09-20 11:34:15 +02:00
watchaggregator lib/config: Allow sub-second watcher delay (fixes #7859) (#7864) 2023-03-18 08:50:38 +01:00
weakhash all: Remove usage of deprecated io/ioutil (#7971) 2021-11-22 08:59:47 +01:00