Follow-up Comment #7, bug #18922 (project freeciv):

Well, I've read a couple manpages and added 
char hbuf[NI_MAXHOST], sbuf[NI_MAXSERV];
if (getnameinfo(&paddr->saddr, sockaddr_size(paddr), hbuf,
 sizeof(hbuf), sizeof(sbuf), NI_NUMERICHOST | NI_NUMERICSERV) == 0)
  printf("host=%s, serv=%sn", hbuf, sbuf);
into 'if (fc_get_errno() == EADDRNOTAVAIL)' into 'int
server_open_socket(void)' in server/sernet.c.

The results don't really give a hint, i.e.:

host=, serv=5556
host=0:ffff:1100::4085:e009%165709136, serv=5556

but AFAIU, these addresses should be random.
Neither '-b localhost' nor '-b ::1' helps.


Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to