mirror of
https://github.com/codex-storage/nim-websock.git
synced 2025-02-02 13:53:21 +00:00
configure SNI hostname when connecting WSS (#128)
When connecting to WebSocket via TLS, certain servers require hostname to be sent as part of SNI extension. This was done when using `news` backend, but not when using `nim-websock` backend. Aligned both impls.
This commit is contained in:
parent
7b2ed397d6
commit
2424f2b215
@ -236,6 +236,7 @@ proc connect*(
|
||||
return WebSocket.connect(
|
||||
host = uri.hostname & ":" & uri.port,
|
||||
path = uri.path,
|
||||
hostName = uri.hostname,
|
||||
protocols = protocols,
|
||||
factories = factories,
|
||||
hooks = hooks,
|
||||
|
Loading…
x
Reference in New Issue
Block a user