Is there anyway to restrict Ktor Server http and/o...
# ktor
q
Is there anyway to restrict Ktor Server http and/or websocket to TLS only? I know I can catch cases in the block and shut things down that way, but is there any way to configure the server to actually refuse to connect to insecure attempts?
a
Yes, you can configure only SSL connector (port) https://ktor.io/docs/ssl.html#configure-ssl-ktor.
q
👍