transport: SOCKS5-прокси для ETCP-линков (CONNECT + UDP ASSOCIATE + пинги)
This commit is contained in:
1 parent
7c8d65db78
commit
d0dfa97a47
14 files changed
+1360
-54
No files matched your search
@@ -50,6 +50,7 @@ struct CFG_SERVER {
|
||||
uint8_t type; // public/nat/private
|
||||
uint8_t transport; // 0=udp (default), 1=tcp
|
||||
uint8_t reality_enabled; // 1 = TCP-порт с REALITY-камуфляжем (только transport=1)
|
||||
uint8_t socks_enabled; // 1 = UDP-сокет туннелировать через SOCKS5 (только transport=0)
|
||||
uint8_t ipv6_mode; // CFG_IPV6_MODE_*
|
||||
int mtu;
|
||||
uint8_t only_local; // 1 = only local connections, no forwarding
|
||||
@@ -223,6 +224,13 @@ struct global_config {
|
||||
|
||||
// Reality-камуфляж ([reality] section)
|
||||
struct reality_config reality;
|
||||
|
||||
// SOCKS5-прокси для исходящих ETCP-линков ([socks] section)
|
||||
int socks_enabled; // 1 = TCP/STCP-линки подключаются через SOCKS5
|
||||
char socks_host[64]; // host прокси (ip или домен)
|
||||
uint16_t socks_port; // порт прокси
|
||||
char socks_username[64]; // пусто = no-auth
|
||||
char socks_password[64];
|
||||
};
|
||||
|
||||
struct utun_config {
|
||||
|
||||
Reference in new issue
Block a user