summaryrefslogtreecommitdiffhomepage
path: root/src/conns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/conns.c')
-rw-r--r--src/conns.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/conns.c b/src/conns.c
index 19aaa49..921cdf6 100644
--- a/src/conns.c
+++ b/src/conns.c
@@ -39,7 +39,8 @@ void conn_struct_init(struct conn_s *connptr) {
}
int conn_init_contents (struct conn_s *connptr, const char *ipaddr,
- const char *sock_ipaddr)
+ const char *sock_ipaddr,
+ const char *sock_ipaddr_mapped)
{
struct buffer_s *cbuffer, *sbuffer;
@@ -59,6 +60,8 @@ int conn_init_contents (struct conn_s *connptr, const char *ipaddr,
connptr->server_ip_addr = (sock_ipaddr ?
safestrdup (sock_ipaddr) : NULL);
+ connptr->server_ip_addr_mapped = (sock_ipaddr_mapped ?
+ safestrdup (sock_ipaddr_mapped) : NULL);
connptr->client_ip_addr = safestrdup (ipaddr);
update_stats (STAT_OPEN);