X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Finfo.c;h=18b8e24ac997740a43578e1bb05f666a04fbcad9;hb=a57db1dfe0736fd902a45ed5f695630faf3f0e1e;hp=eb0d395aac978350632ceaa88ea3f176e648eae6;hpb=248d300f1be0d5f2aae39202041699ab2b46c56b;p=tinc diff --git a/src/info.c b/src/info.c index eb0d395a..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,6 +104,8 @@ static int info_node(int fd, const char *item) { printf(" reachable"); if(status.indirect) printf(" indirect"); + if(status.sptps) + printf(" sptps"); printf("\n"); printf("Options: "); if(options & OPTION_INDIRECT)