summaryrefslogtreecommitdiffstats
path: root/src/server.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-10-21 09:24:59 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-10-21 09:24:59 +0000
commit2bbf7ca3ab74b2e3a9b2e361fe56aeac1e2f4867 (patch)
tree6d0ad563f29e8b130a876da955b3174e40defed3 /src/server.c
parentReleasing debian version 1.7.1-1. (diff)
downloadttyd-2bbf7ca3ab74b2e3a9b2e361fe56aeac1e2f4867.tar.xz
ttyd-2bbf7ca3ab74b2e3a9b2e361fe56aeac1e2f4867.zip
Merging upstream version 1.7.2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/server.c')
-rw-r--r--src/server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server.c b/src/server.c
index c135ab9..91e3a90 100644
--- a/src/server.c
+++ b/src/server.c
@@ -539,7 +539,7 @@ int main(int argc, char **argv) {
info.ssl_ca_filepath = ca_path;
info.options |= LWS_SERVER_OPTION_REQUIRE_VALID_OPENSSL_CLIENT_CERT;
}
- info.options |= LWS_SERVER_OPTION_REDIRECT_HTTP_TO_HTTPS;
+ info.options |= LWS_SERVER_OPTION_ALLOW_NON_SSL_ON_SSL_PORT | LWS_SERVER_OPTION_REDIRECT_HTTP_TO_HTTPS;
}
#endif