From c6d4fadd6efa32858b4acdb589a073fd2ae92c6f Mon Sep 17 00:00:00 2001 From: Christian Ulrich Date: Mon, 13 Jul 2020 00:16:10 +0200 Subject: [PATCH] unix socket needs to be marked as listening --- punchd.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/punchd.nim b/punchd.nim index 76ee84e..db78b8b 100644 --- a/punchd.nim +++ b/punchd.nim @@ -77,6 +77,7 @@ proc main() = removeFile("/tmp/punchd.socket") let unixSocket = newAsyncSocket(AF_UNIX, SOCK_STREAM, IPPROTO_IP) unixSocket.bindUnix("/tmp/punchd.socket") + unixSocket.listen() asyncCheck handleUsers(unixSocket) runForever()