and in this case we can get the ip address directly from the socket. This
should mean that if we add more protocol support we don't have to worry about
this. No doubt this is the first of many such changes...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86817
13f79535-47bb-0310-9956-
ffa450edef68
conn->pool = p;
conn->local_addr = *saddr;
- conn->local_ip = apr_pstrdup(conn->pool,
- inet_ntoa(conn->local_addr.sin_addr));
+ apr_get_local_ipaddr(&conn->local_ip, inout);
conn->base_server = server;
conn->client = conn_io;
conn->client_socket = inout;
conn->remote_addr = *remaddr;
- conn->remote_ip = apr_pstrdup(conn->pool,
- inet_ntoa(conn->remote_addr.sin_addr));
-
+ apr_get_remote_ipaddr(&conn->remote_ip, inout);
conn->id = id;
return conn;