Skip to content

Commit 3a176ea

Browse files
authored
Merge pull request #7 from Zectbumo/master
use IPPROTO_IP for Nim 2
2 parents 354d60c + b7916cd commit 3a176ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fastcgi/server.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ proc serveUnix*(server: AsyncFCGIServer; path: string): Future[void] =
272272
var socket = newAsyncSocket(
273273
domain = AF_UNIX,
274274
sockType = SOCK_STREAM,
275-
protocol = cast[Protocol](0),
275+
protocol = IPPROTO_IP,
276276
)
277277
bindUnix(socket, path)
278278
socket.listen()
@@ -284,4 +284,4 @@ proc close*(server: AsyncFCGIServer) =
284284

285285
when isMainModule:
286286
let server = newAsyncFCGIServer()
287-
waitFor server.serve(Port(9000))
287+
waitFor server.serve(Port(9000))

0 commit comments

Comments
 (0)