Browse Source

hid community name at management port if header encryption enabled (#822)

pull/827/head
Logan oos Even 3 years ago
committed by GitHub
parent
commit
40f1894956
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/edge_utils.c

2
src/edge_utils.c

@ -1904,7 +1904,7 @@ static void readFromMgmtSocket (n2n_edge_t *eee, int *keep_running) {
msg_len = 0;
msg_len += snprintf((char *) (udp_buf + msg_len), (N2N_PKT_BUF_SIZE - msg_len),
"COMMUNITY '%s'\n\n",
eee->conf.community_name);
(eee->conf.header_encryption == HEADER_ENCRYPTION_NONE) ? (char*)eee->conf.community_name : "-- header encrypted --");
msg_len += snprintf((char *) (udp_buf + msg_len), (N2N_PKT_BUF_SIZE - msg_len),
" ### | TAP | MAC | EDGE | HINT | LAST SEEN | UPTIME\n");
msg_len += snprintf((char *) (udp_buf + msg_len), (N2N_PKT_BUF_SIZE - msg_len),

Loading…
Cancel
Save