mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-29 02:33:58 +00:00
enable experimental:strictDefs (#24225)
This commit is contained in:
@@ -45,7 +45,7 @@ when not defined(windows) and not disableSSLTesting():
|
||||
proc runServer(port: Port): bool {.thread.} =
|
||||
## Run a trivial HTTPS server in a {.thread.}
|
||||
## Exit after serving one request
|
||||
|
||||
result = false
|
||||
var socket = newSocket()
|
||||
socket.setSockOpt(OptReusePort, true)
|
||||
socket.bindAddr(port)
|
||||
@@ -55,7 +55,7 @@ when not defined(windows) and not disableSSLTesting():
|
||||
## Handle one connection
|
||||
socket.listen()
|
||||
|
||||
var client: Socket
|
||||
var client: Socket = default(Socket)
|
||||
var address = ""
|
||||
|
||||
log "server: ready"
|
||||
|
||||
Reference in New Issue
Block a user