… | |
… | |
51 | RSA *rsa_key; // his public key |
51 | RSA *rsa_key; // his public key |
52 | char *nodename; // nodename, an internal nickname. |
52 | char *nodename; // nodename, an internal nickname. |
53 | char *hostname; // hostname, if known, or NULL. |
53 | char *hostname; // hostname, if known, or NULL. |
54 | #if ENABLE_DNS |
54 | #if ENABLE_DNS |
55 | char *domain; // dns tunnel domain |
55 | char *domain; // dns tunnel domain |
|
|
56 | #endif |
|
|
57 | char *dns_hostname; |
56 | u16 dns_port; |
58 | u16 dns_port; |
57 | #endif |
|
|
58 | |
59 | |
59 | u8 protocols; // protocols this host can send & receive |
60 | u8 protocols; // protocols this host can send & receive |
60 | u16 udp_port, tcp_port; // the port to bind to |
61 | u16 udp_port, tcp_port; // the port to bind to |
61 | int max_retry; |
62 | int max_retry; |
62 | |
63 | |
… | |
… | |
98 | char *proxy_auth; // login:password |
99 | char *proxy_auth; // login:password |
99 | char *proxy_host; // the proxy hostname, e.g. proxy1.example.net |
100 | char *proxy_host; // the proxy hostname, e.g. proxy1.example.net |
100 | u16 proxy_port; // the proxy port, e.g. 3128 |
101 | u16 proxy_port; // the proxy port, e.g. 3128 |
101 | #endif |
102 | #endif |
102 | |
103 | |
|
|
104 | #if ENABLE_DNS |
103 | char *dns_forw_host; |
105 | char *dns_forw_host; |
104 | u16 dns_forw_port; |
106 | u16 dns_forw_port; |
|
|
107 | #endif |
105 | |
108 | |
106 | void init (); |
109 | void init (); |
107 | void cleanup (); |
110 | void cleanup (); |
108 | void read_config (bool need_keys); |
111 | void read_config (bool need_keys); |
109 | void clear_config (); |
112 | void clear_config (); |