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=48.100.239.182, 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:
<http://gna.org/bugs/?18922>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev