An open-source cross-platform alternative to AirDrop
feat: decrease default discovery timeout
Tien Do Nam655c83442f9e
diff --git a/common/lib/constants.dart b/common/lib/constants.dartindex 969be7a7..7b7ebadc 100644--- a/common/lib/constants.dart+++ b/common/lib/constants.dart@@ -6,7 +6,7 @@/// 1.0 | 1.0.0 - 1.8.0/// 1.0, 2.0 | 1.9.0 - 1.14.0/// 1.0, 2.1 | 1.15.0-const protocolVersion = '2.0';+const protocolVersion = '2.1';/// Assumed protocol version of peers for first handshake./// Generally this should be slightly lower than the current protocol version.@@ -23,7 +23,7 @@ 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 = 2000;+const defaultDiscoveryTimeout = 500;/// The default multicast group should be 224.0.0.0/24/// because on some Android devices this is the only IP range