mirror of
https://github.com/status-im/nim-json-rpc.git
synced 2025-02-25 02:35:15 +00:00
do not disable TLS verification by default (#148)
Setting `NoVerifyHost`, `NoVerifyServerName` by default leads to hard-to-debug bugs, it should always be explicit if wanted. Note: This is also a workaround for https://github.com/status-im/nim-chronos/issues/313
This commit is contained in:
parent
7c80b75856
commit
446b18819d
@ -144,7 +144,7 @@ else:
|
||||
extraHeaders: HttpTable = default(HttpTable),
|
||||
compression = false,
|
||||
hooks: seq[Hook] = @[],
|
||||
flags: set[TLSFlags] = {NoVerifyHost, NoVerifyServerName}) {.async.} =
|
||||
flags: set[TLSFlags] = {}) {.async.} =
|
||||
proc headersHook(ctx: Hook, headers: var HttpTable): Result[void, string] =
|
||||
headers.addExtraHeaders(client, extraHeaders)
|
||||
ok()
|
||||
|
Loading…
x
Reference in New Issue
Block a user