status-im / nim-websock

Websocket for Nim
82 stars 15 forks source link

configure SNI hostname when connecting WSS #128

Closed etan-status closed 2 years ago

etan-status commented 2 years ago

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.