refactor --bind and --interface, fix --key

This commit is contained in:
wangyu
2020-07-13 22:23:17 -04:00
parent 5bb65af72c
commit 55606b63f9
8 changed files with 36 additions and 26 deletions

7
misc.h
View File

@@ -39,10 +39,11 @@ extern int fix_latency;
//extern char local_ip[100], remote_ip[100];
//extern int local_port, remote_port;
extern char interface_string[16];
extern bool has_b;
extern address_t local_addr,remote_addr,bind_addr;
extern address_t local_addr,remote_addr;
extern address_t *out_addr;
extern char *out_interface;
extern conn_manager_t conn_manager;
extern delay_manager_t delay_manager;