mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-13 19:24:57 +03:00
Cedar/Proto_OpenVPN: Make timeout and ping transmission interval configurable
Also, the default timeout value is set to 30000 (milliseconds) instead of 10000. The change is made because it was reported that some routers failed to connect in time.
This commit is contained in:
@ -26,8 +26,6 @@
|
||||
|
||||
#define OPENVPN_TMP_BUFFER_SIZE (65536 + 256) // Temporary buffer size
|
||||
|
||||
#define OPENVPN_PING_SEND_INTERVAL 3000 // Transmission interval of Ping
|
||||
#define OPENVPN_RECV_TIMEOUT 10000 // Communication time-out
|
||||
#define OPENVPN_NEW_SESSION_DEADLINE_TIMEOUT 30000 // Grace time to complete new VPN session connection since it was created
|
||||
|
||||
#define OPENVPN_MAX_PACKET_ID_FOR_TRIGGER_REKEY 0xFF000000 // Packet ID that is a trigger to start the re-key
|
||||
@ -207,7 +205,9 @@ struct OPENVPN_SERVER
|
||||
char *DefaultClientOption; // Default option string to push to client
|
||||
bool Obfuscation; // Obfuscation enabled/disabled
|
||||
char *ObfuscationMask; // String (mask) for XOR obfuscation
|
||||
UINT PingSendInterval; // Ping transmission interval
|
||||
bool PushDummyIPv4AddressOnL2Mode; // Push a dummy IPv4 address in L2 mode
|
||||
UINT Timeout; // Communication timeout
|
||||
};
|
||||
|
||||
//// Function prototype
|
||||
|
Reference in New Issue
Block a user