]> Nishi Git Mirror - tewi.git/commitdiff
add HAS_SSL
authorNishi <nishi@nishi.boats>
Thu, 26 Sep 2024 21:21:44 +0000 (21:21 +0000)
committerNishi <nishi@nishi.boats>
Thu, 26 Sep 2024 21:21:44 +0000 (21:21 +0000)
git-svn-id: file:///raid/svn-personal/tewi/trunk@174 8739d7e6-ffea-ec47-b151-bdff447c6205

Server/config.c
Server/tw_version.h

index a6a4d08f268e8ad19e3622811076b178fbb75119..e6202252b6fe69f3f1acfd2482866325cb8e02ce 100644 (file)
@@ -105,6 +105,9 @@ void tw_config_init(void) {
 #ifdef HAS_CHROOT
        tw_add_define("HAS_CHROOT");
 #endif
+#ifndef NO_SSL
+       tw_add_define("HAS_SSL");
+#endif
 }
 
 int tw_config_read(const char* path) {
@@ -244,7 +247,11 @@ int tw_config_read(const char* path) {
                                                        vhost = NULL;
                                                        current = &config.root;
                                                }
-                                       } else if(cm_strcaseequ(r[0], "Listen") || cm_strcaseequ(r[0], "ListenSSL")) {
+                                       } else if(cm_strcaseequ(r[0], "Listen")
+#ifndef NO_SSL
+                                                 || cm_strcaseequ(r[0], "ListenSSL")
+#endif
+                                       ) {
                                                for(i = 1; r[i] != NULL; i++) {
                                                        uint64_t port = atoi(r[i]);
                                                        cm_log("Config", "Going to listen at port %d%s", (int)port, cm_strcaseequ(r[0], "ListenSSL") ? " with SSL" : "");
index 440d863c19854531b08acd383906fac556e01615..bc82bca3a03f5665f05c5771b7ca176802082cab 100644 (file)
@@ -7,7 +7,7 @@
 extern "C" {
 #endif
 
-#define TW_VERSION "1.08D\0"
+#define TW_VERSION "1.09\0"
 
 const char* tw_get_version(void);
 const char* tw_get_platform(void);