summaryrefslogtreecommitdiff
path: root/src/child.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-11-07 12:15:20 +0100
committerMichael Adam <obnox@samba.org>2013-11-09 13:34:33 +0100
commit2bd919f01e8303aa1efdf39af89132a6ab9388cb (patch)
tree1701cc7ea1d60f9792505068c20054be38ac51f8 /src/child.c
parent7eea1638bc881c4466367102919fe393b4ceb724 (diff)
downloadtinyproxy-2bd919f01e8303aa1efdf39af89132a6ab9388cb.tar.gz
tinyproxy-2bd919f01e8303aa1efdf39af89132a6ab9388cb.zip
sock: add addr argument to listen_sock()
instead of using config.ipAddr internally. This is in preparation to make it possible to call it for multiple addresses. Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to '')
-rw-r--r--src/child.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/child.c b/src/child.c
index 9f8ae10..3ed4030 100644
--- a/src/child.c
+++ b/src/child.c
@@ -466,7 +466,7 @@ void child_kill_children (int sig)
int child_listening_sock (uint16_t port)
{
- listenfd = listen_sock (port);
+ listenfd = listen_sock (config.ipAddr, port);
return listenfd;
}