X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=udp.c;h=70928a8109fb130edd5fa53c977cc41fbeb551de;hb=656df7e2c9b688150ebe991d79a64ac096bb5f8e;hp=06acf3345e9806ca71eaa6278544f48eb067a802;hpb=c72d679d2344a22f55889da6932754986fc0a7b9;p=secnet.git diff --git a/udp.c b/udp.c index 06acf33..70928a8 100644 --- a/udp.c +++ b/udp.c @@ -54,7 +54,7 @@ static const char *udp_addr_to_string(void *commst, const struct comm_addr *ca) assert(ix>=0 && ixn_socks); snprintf(sbuf, sizeof(sbuf), "udp:%s%s-%s", iaddr_to_string(&socks->socks[ix].addr), - ca->ix<0 ? "&" : "", + ca->ix<0 && socks->n_socks>1 ? "&" : "", iaddr_to_string(&ca->ia)); return sbuf; }