mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-28 11:43:50 +00:00
Only define TCP_FASTOPEN if not exists
This commit is contained in:
+2
-3
@@ -78,10 +78,9 @@
|
||||
// Check if ConnectEx supported in header
|
||||
#ifdef WSAID_CONNECTEX
|
||||
// Hardcode TCP fast open option
|
||||
#ifdef TCP_FASTOPEN
|
||||
#undef TCP_FASTOPEN
|
||||
#endif
|
||||
#ifndef TCP_FASTOPEN
|
||||
#define TCP_FASTOPEN 15
|
||||
#endif
|
||||
// Enable TFO support
|
||||
#define TCP_FASTOPEN_WINSOCK 1
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user