Test serving over SSL

This commit is contained in:
Alex Hultman
2018-09-12 02:25:00 +02:00
parent 80e64b59fb
commit 20d01a433f
3 changed files with 21 additions and 5 deletions
+5 -1
View File
@@ -37,7 +37,11 @@ protected:
}
LoopData *getLoopData() {
return (LoopData *) us_loop_ext(us_socket_context_loop(us_socket_get_context((SOCKET_TYPE *) this)));
if constexpr(SSL) {
return (LoopData *) us_loop_ext(us_ssl_socket_context_loop(us_ssl_socket_get_context((SOCKET_TYPE *) this)));
} else {
return (LoopData *) us_loop_ext(us_socket_context_loop(us_socket_get_context((SOCKET_TYPE *) this)));
}
}
public: