summaryrefslogtreecommitdiffhomepage
path: root/src/conns.c
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2020-11-06 23:25:56 +0100
committerMikael Magnusson <mikma@users.sourceforge.net>2021-06-10 22:07:59 +0200
commit2abda4c7643797bf148fb267da8cbe4032d9b659 (patch)
treeecd6cb95cd1b5c4b3929a2dfcddf09c1b04a4131 /src/conns.c
parent7168a42624fb9ce3305c9e666e44cc8a533af5f6 (diff)
WIP: BindIPv4Mapped
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);