Hi -
> That IN6_IS_ADDR_V4MAPPED is funny. Is that actually used in practice? Yeah, actually all the time. On a dual-stack socket, an ipv4 connection gets an ipv6 peer-address that renders like ::ffff:1.2.3.4. > Too bad this cannot be merged with conninfo above. > But this calculates less info. Yeah. > > obatched(clog) << "started http server on " > > - << (d4 != NULL ? "IPv4 " : "") > > - << (d6 != NULL ? "IPv6 " : "") > > + << "IPv4 " > > + << "IPv6 " > > << "port=" << http_port << endl; > > This keeps the log output the same, but I wouldn't mind just removing > the IPv4 and IPv6 strings. Yeah, makes sense. OK, will push with that change. - FChE