summaryrefslogtreecommitdiff
path: root/daemon
diff options
context:
space:
mode:
Diffstat (limited to 'daemon')
-rw-r--r--daemon/httpauthd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/httpauthd.c b/daemon/httpauthd.c
index 3f87771..3ea58fe 100644
--- a/daemon/httpauthd.c
+++ b/daemon/httpauthd.c
@@ -247,7 +247,7 @@ int main(int argc, char* argv[])
errx(1, "out of memory");
/* Get the socket type */
- if(sock_any_pton(g_socket, &sany, DEFAULT_PORT) == -1)
+ if(sock_any_pton(g_socket, &sany, SANY_OPT_DEFANY | SANY_OPT_DEFPORT(DEFAULT_PORT)) == -1)
errx(1, "invalid socket name or ip: %s", g_socket);
/* Create the socket */