Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ambrop72/badvpn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tun2socks/tun2socks.h')
-rw-r--r--tun2socks/tun2socks.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tun2socks/tun2socks.h b/tun2socks/tun2socks.h
index caf5778..27d4129 100644
--- a/tun2socks/tun2socks.h
+++ b/tun2socks/tun2socks.h
@@ -44,3 +44,9 @@
// option to override the destination addresses to give the SOCKS server
//#define OVERRIDE_DEST_ADDR "10.111.0.2:2000"
+
+// Max number of buffered outgoing UDP packets for SOCKS5-UDP. It should be large
+// enough to prevent packet loss while the SOCKS UDP association is being set up. A slow
+// or far-away SOCKS server could require 300 ms to connect, and a chatty client (e.g.
+// STUN) could send a packet every 20 ms, so a default limit of 16 seems reasonable.
+#define SOCKS_UDP_SEND_BUFFER_PACKETS 16