greatroar and GitHub
7c292cc812
lib/connections: Fix and optimize registry ( #7996 )
...
Registry.Get used a full sort to get the minimum of a list, and the sort
was broken because util.AddressUnspecifiedLess assumed it could find out
whether an address is IPv4 or IPv6 from its Network method. However,
net.(TCP|UDP)Addr.Network always returns "tcp"/"udp".
2021-10-06 10:52:51 +02:00
66662cd678
Trigger connection loop on config device addition ( fixes #7600 ) ( #7604 )
...
* Trigger connection loop on config device addition (fixes #7600 )
* Also check for device address equality
* Move EqualStrings from api_test to utils, and use in connections/service.go
* Make sure CommitConfiguration cannot block due on the deviceAddressesChanged channel
* Update lib/connections/service.go
Co-authored-by: Jakob Borg <jakob@kastelo.net >
2021-04-26 21:13:59 +01:00
8b86171642
lib/stun: Inline util.OnDone, comment on its purpose ( #7308 )
...
Co-authored-by: greatroar <@>
2021-01-27 19:27:00 +01:00
ef0473c091
lib/util, lib/svcutil: Remove unused code ( #7309 )
...
Duplicates the definition in lib/svcutil.
Co-authored-by: greatroar <@>
2021-01-27 16:33:01 +01:00
6da83ac9f5
lib/util: Remove duplicate error handling code ( #7299 )
...
This is also in lib/svcutil, and never used by clients.
Co-authored-by: greatroar <@>
2021-01-24 20:19:10 +01:00
greatroar and GitHub
9c88efd55f
lib/util: Don't modify input in UniqueTrimmedStrings ( #7288 )
...
Also clarified the comment.
2021-01-16 17:39:15 +01:00
Simon Frei and GitHub
a20a5f61f0
lib/ur: Send unreported failures on shutdown ( #7164 )
2020-12-22 20:17:14 +01:00
Simon Frei and GitHub
78bd0341a8
all: Handle errors opening db/creating file-set (ref #5907 ) ( #7150 )
2020-12-21 12:59:22 +01:00
Simon Frei and GitHub
fa40ccece1
lib: Consistently set suture logging ( #7202 )
2020-12-18 19:44:00 +01:00
Simon Frei and GitHub
24af89c8e2
all: Refactor preparing configuration ( #7127 )
2020-11-20 14:21:54 +01:00
Simon Frei and GitHub
e11b309379
lib/model, lib/util: Replace IsComplete with NoRestartErr (ref #6947 ) ( #7126 )
2020-11-18 13:43:57 +01:00
Simon Frei and GitHub
9524b51708
all: Implement suture v4-api ( #6947 )
2020-11-17 13:19:04 +01:00
Audrius Butkevicius and GitHub
d507d932b8
all: Use protobuf to generate config structs ( fixes #6734 ) ( #6900 )
2020-08-25 08:11:14 +02:00
Audrius Butkevicius and GitHub
9d4a700829
lib/ur: Track new folder feature usage ( #6803 )
2020-06-28 20:35:22 +02:00
Simon Frei and GitHub
8cf9d91ed4
lib: Print nicely rounded durations ( #6756 )
2020-06-18 10:55:41 +02:00
Audrius Butkevicius and GitHub
f619a7f4cc
lib/connections: Try TCP punchthrough ( fixes #4259 ) ( #5753 )
2020-06-16 09:17:07 +02:00
Boqin Qin and GitHub
c63ca4f563
lib/protocol, rc, utils: Add mutex Unlock before panic ( #6556 )
2020-04-20 14:52:16 +02:00
d7a257b391
lib/util: Fix potential data race ( #6477 )
...
Co-authored-by: greatroar <@>
2020-03-30 14:10:08 +01:00
Simon Frei and GitHub
f0e33d052a
lib: More contextification ( #6343 )
2020-02-24 21:57:15 +01:00
Simon Frei and Audrius Butkevicius
1bae4b7f50
all: Use context in lib/dialer ( #6177 )
...
* all: Use context in lib/dialer
* a bit slimmer
* https://github.com/syncthing/syncthing/pull/5753
* bot
* missed adding debug.go
* errors.Cause
* simultaneous dialing
* anti-leak
2019-11-26 07:39:51 +00:00
Simon Frei and GitHub
90d85fd0a2
lib: Replace done channel with contexts in and add names to util services ( #6166 )
2019-11-21 08:41:15 +01:00
Simon Frei and Jakob Borg
031684116b
lib/util: Add caller info to service (ref #5932 ) ( #5973 )
2019-10-16 09:06:16 +02:00
Simon Frei and Jakob Borg
4d3432af3e
lib: Ensure timely service termination ( fixes #5860 ) ( #5863 )
2019-07-19 19:40:40 +02:00
Simon Frei and GitHub
ba056578ec
lib: Add util.Service as suture.Service template ( fixes #5801 ) ( #5806 )
2019-07-09 11:40:30 +02:00
Audrius Butkevicius and Jakob Borg
e714df013f
lib/connections: Add QUIC protocol support ( fixes #5377 ) ( #5737 )
2019-05-29 09:56:40 +02:00
Audrius Butkevicius and Jakob Borg
dc929946fe
all: Use new reflect based CLI ( #5487 )
2019-02-12 07:58:24 +01:00
Jakob Borg and Audrius Butkevicius
47429d01e8
lib/config, lib/model: Tweaks to the auto accept feature
...
Fix the folder restart behavior (ignore Label), improve the API for that
(imho).
Also removes the tab switch animation in the settings modal, because
annoying.
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4577
2017-12-07 08:33:32 +00:00
Audrius Butkevicius and Jakob Borg
445c4edeca
gui, lib/config, lib/model: Support auto-accepting folders ( fixes #2299 )
...
Also introduces a new Waiter interface for config changes and segments the
configuration GUI.
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4551
2017-12-07 07:08:24 +00:00
Jakob Borg
f7fc0c1d3e
all: Update license url to https (ref #3976 )
2017-02-09 08:04:16 +01:00
Audrius Butkevicius
67acef1794
lib/weakhash, lib/model, cmd/syncthing: Decide if to use weakhash on startup ( fixes #3938 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3949
2017-02-06 10:27:11 +00:00
Audrius Butkevicius and Jakob Borg
1d17891286
lib/upnp: Refactor out methods to util with tests, refactor IGD
2016-03-25 20:22:29 +00:00