X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Finfo.c;h=18b8e24ac997740a43578e1bb05f666a04fbcad9;hb=90f1cba1fd9e748ec4b8274511d5a36ec1a24d9d;hp=6d0435f894d65ccfb8dfbcb856e9af2e345505f7;hpb=6319dc9dde3b328ba800f25a6bb4cf303d27f664;p=tinc diff --git a/src/info.c b/src/info.c index 6d0435f8..18b8e24a 100644 --- a/src/info.c +++ b/src/info.c @@ -33,7 +33,7 @@ void logger(int level, int priority, const char *format, ...) { va_end(ap); } -static char *strip_weight(char *netstr) { +char *strip_weight(char *netstr) { int len = strlen(netstr); if(len >= 3 && !strcmp(netstr + len - 3, "#10")) netstr[len - 3] = 0; @@ -104,8 +104,8 @@ static int info_node(int fd, const char *item) { printf(" reachable"); if(status.indirect) printf(" indirect"); - if(status.ecdh) - printf(" ecdh"); + if(status.sptps) + printf(" sptps"); printf("\n"); printf("Options: "); if(options & OPTION_INDIRECT) @@ -117,6 +117,7 @@ static int info_node(int fd, const char *item) { if(options & OPTION_CLAMP_MSS) printf(" clamp_mss"); printf("\n"); + printf("Protocol: %d.%d\n", PROT_MAJOR, OPTION_VERSION(options)); printf("Reachability: "); if(!*port) printf("can reach itself\n");