it shows the interface and port number; it is now very similar
to the error message used in 1.3
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84823
13f79535-47bb-0310-9956-
ffa450edef68
int one = 1;
char addr[512];
ap_status_t stat;
+ ap_uint32_t port;
+ char *ipaddr;
- ap_cpystrn(addr, "[@main/listen.c:make_sock(): inet_ntoa(server->sin_addr)]", sizeof addr);
+ ap_get_local_port(&port,s);
+ ap_get_local_ipaddr(&ipaddr,s);
+ ap_snprintf(addr, sizeof(addr), "address %s port %u", ipaddr,
+ (unsigned) port);
stat = ap_setsocketopt(s, APR_SO_REUSEADDR, one);
if (stat != APR_SUCCESS && stat != APR_ENOTIMPL) {