Evgeny 3 days ago
parent
commit
c8bac5d322
  1. 4
      src/config_parser.c

4
src/config_parser.c

@ -735,12 +735,12 @@ void print_config(const struct utun_config *cfg) {
const struct global_config *g = &cfg->global; const struct global_config *g = &cfg->global;
char ip_buffer[64]; char ip_buffer[64];
DEBUG_INFO(DEBUG_CATEGORY_CONFIG, "Global: priv_key=%s, pub_key=%s, node_id=%llx, tun_if=%s, tun_ip=%s, mtu=%d, keepalive=%d, test_mode=%d, net_debug=%d", DEBUG_INFO(DEBUG_CATEGORY_CONFIG, "Global: priv_key=%s, pub_key=%s, node_id=%llx, tun_if=%s, tun_ip=%s, mtu=%d, keepalive=%d, test_mode=%d",
g->my_private_key_hex, g->my_public_key_hex, g->my_private_key_hex, g->my_public_key_hex,
(unsigned long long)g->my_node_id, (unsigned long long)g->my_node_id,
g->tun_ifname[0] ? g->tun_ifname : "auto", g->tun_ifname[0] ? g->tun_ifname : "auto",
ip_to_string(&g->tun_ip, ip_buffer, sizeof(ip_buffer)), ip_to_string(&g->tun_ip, ip_buffer, sizeof(ip_buffer)),
g->mtu, g->keepalive_timeout, g->tun_test_mode, g->net_debug); g->mtu, g->keepalive_timeout, g->tun_test_mode);
DEBUG_INFO(DEBUG_CATEGORY_CONFIG, "Servers:"); DEBUG_INFO(DEBUG_CATEGORY_CONFIG, "Servers:");
struct CFG_SERVER *s = cfg->servers; struct CFG_SERVER *s = cfg->servers;

Loading…
Cancel
Save