X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Finfo.c;h=18b8e24ac997740a43578e1bb05f666a04fbcad9;hb=b332bd964663b7109a5fc4be596d36fbf1dbaa47;hp=df5d11d18fff969d877f3934260dd3df12b1663f;hpb=76a3ada4eb4032172c3d780915a07680f9954d42;p=tinc diff --git a/src/info.c b/src/info.c index df5d11d1..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)