libsoup and IPv6



I recently started modifying a libsoup (2.32.2) application so that it
will work with IPv6. I am now creating an HTTP server with:

addr = soup_address_new_any (addr_family, port);
share->priv->server = soup_server_new (SOUP_SERVER_INTERFACE, addr, NULL);

What I am finding is that if addr_family is SOUP_ADDRESS_FAMILY_IPV4,
then the server is available using IPv4. However, if I use
SOUP_ADDRESS_FAMILY_IPV6, then the server is available using *both*
IPv4 and v6. I guess I would expect the latter to be IPv6 only.

I think the behavior that I am seeing will make things more convenient
for me. I just want to make sure I am not doing anything wrong. Where is
it documented that SOUP_ADDRESS_FAMILY_IPV6 means that the service will
be available on both IPv4 and IPv6? Or am I interpreting this incorrectly?

-- 
Mike

:wq


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]