فهرست منبع

tun2socks: change default udpgw parameters

ambrop7 14 سال پیش
والد
کامیت
27fbb0818e
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      tun2socks/tun2socks.h

+ 2 - 2
tun2socks/tun2socks.h

@@ -31,10 +31,10 @@
 #define CLIENT_SOCKS_RECV_BUF_SIZE 8192
 
 // maximum number of udpgw connections
-#define DEFAULT_UDPGW_MAX_CONNECTIONS 512
+#define DEFAULT_UDPGW_MAX_CONNECTIONS 256
 
 // udpgw per-connection send buffer size, in number of packets
-#define DEFAULT_UDPGW_CONNECTION_BUFFER_SIZE 4
+#define DEFAULT_UDPGW_CONNECTION_BUFFER_SIZE 8
 
 // udpgw reconnect time after connection fails
 #define UDPGW_RECONNECT_TIME 5000