mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-10 15:20:56 +00:00
ab0eb909a2
* 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. |
||
---|---|---|
.. | ||
mocks | ||
benchmark_test.go | ||
bep_extensions.go | ||
bep.pb.go | ||
bufferpool_test.go | ||
bufferpool.go | ||
common_test.go | ||
compression_test.go | ||
compression.go | ||
conflict_test.go | ||
counting.go | ||
debug.go | ||
deviceid_test.go | ||
deviceid_test.pb.go | ||
deviceid.go | ||
doc.go | ||
encryption_test.go | ||
encryption.go | ||
errors.go | ||
hello_test.go | ||
hello.go | ||
LICENSE | ||
luhn_test.go | ||
luhn.go | ||
mocked_connection_info_test.go | ||
nativemodel_darwin.go | ||
nativemodel_unix.go | ||
nativemodel_windows_test.go | ||
nativemodel_windows.go | ||
protocol_test.go | ||
protocol.go | ||
vector_test.go | ||
vector.go | ||
wireformat.go |