mirror of
https://github.com/localsend/localsend.git
synced 2026-06-23 04:10:07 +00:00
add discovery timeout setting (#1304)
This commit is contained in:
@@ -19,6 +19,11 @@ const fallbackProtocolVersion = '1.0';
|
||||
/// and multicast port.
|
||||
const defaultPort = 53317;
|
||||
|
||||
/// The default discovery timeout in milliseconds.
|
||||
/// This is the time the discovery server waits for responses.
|
||||
/// If no response is received within this time, the target server is unavailable.
|
||||
const defaultDiscoveryTimeout = 100;
|
||||
|
||||
/// The default multicast group should be 224.0.0.0/24
|
||||
/// because on some Android devices this is the only IP range
|
||||
/// that can receive UDP multicast messages.
|
||||
|
||||
Reference in New Issue
Block a user