syncthing/gui/default/syncthing
André Colomb ab0eb909a2
gui, lib/connections: Let the backend decide whether connection is local (fixes #8686) (#8694)
* lib/connections: Cache isLAN decision for later external access.

The check whether a remote device's address is on a local network
currently happens when handling the Hello message, to configure the
limiters.  Save the result to the ConnectionInfo and pass it out as
part of the model's ConnectionInfo struct in ConnectionStats().

* gui: Use provided connection attribute to distinguish LAN / WAN.

Replace the dumb IP address check which didn't catch common cases and
actually could contradict what the backend decided.  That could have
been confusing if the GUI says WAN, but the limiter is not actually
applied because the backend thinks it's a LAN.

Add strings for QUIC and relay connections to also differentiate
between LAN and WAN.

* gui: Redefine reception level icons for all connection types.

Move the mapping to the JS code, as it is much easier to handle
multiple switch cases by fall-through there.

QUIC is regarded no less than TCP anymore.  LAN and WAN make the
difference between levels 4 / 3 and 2 / 1:

{TCP,QUIC} LAN --> {TCP,QUIC} WAN --> Relay LAN --> Relay WAN -->
Disconnected.
2022-11-28 09:28:33 +01:00
..
core gui, lib/connections: Let the backend decide whether connection is local (fixes #8686) (#8694) 2022-11-28 09:28:33 +01:00
development gui: Reformat HTML & JS for consistent white space 2018-12-25 14:26:46 +01:00
device gui: Add copy to clipboard, share by email, and share by SMS buttons to device IDs (fixes #2771, ref #3868) (#7984) 2022-11-07 20:11:12 +01:00
folder gui: Fix missing word in sendOwnership explanation in GUI (#8547) 2022-09-19 21:34:10 +02:00
settings gui: Disable autocomplete for user/password fields in settings (fixes #8376) (#8377) 2022-06-07 06:59:11 +02:00
transfer all: Remove untrusted feature flag (fixes #109) (#7567) 2021-04-13 10:12:56 +02:00
usagereport lib/ur: Normalise contract between syncthing and ursrv (#6770) 2020-06-23 09:47:15 +01:00
app.js gui: Fix error in Restore Versions when path exists as both directory and file (fixes #7068) (#8532) 2022-09-12 08:19:29 +02:00