add UDP relay only mode

This commit is contained in:
Max Lv
2015-07-06 13:48:32 +08:00
parent 3a629a320c
commit ea9d293abe
7 changed files with 197 additions and 135 deletions
+4
View File
@@ -43,6 +43,10 @@
#define SOL_TCP IPPROTO_TCP
#endif
#define TCP_ONLY 0
#define TCP_AND_UDP 1
#define UDP_ONLY 3
int init_udprelay(const char *server_host, const char *server_port,
#ifdef UDPRELAY_LOCAL
const struct sockaddr *remote_addr, const int remote_addr_len,