Revision c98f6152

View differences:

src/net_helper-udp.c
339 339
{
340 340
  int n;
341 341

  
342
  if (!inet_ntop(AF_INET, &(s->addr.sin_addr), addr, len)) {
342
  if (node_ip(s, addr, len) < 0) {
343 343
    return -1;
344 344
  }
345
  n = snprintf(addr + strlen(addr), len - strlen(addr) - 1, ":%d", ntohs(s->addr.sin_port));
345
  n = snprintf(addr + strlen(addr), len - strlen(addr) - 1, ":%d", node_port(s));
346 346

  
347 347
  return n;
348 348
}

Also available in: Unified diff