From: Nishi Date: Thu, 26 Sep 2024 21:21:44 +0000 (+0000) Subject: add HAS_SSL X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=4b18d70cd141c59252757dd399dc87f9af0a59bb;p=tewi.git add HAS_SSL git-svn-id: file:///raid/svn-personal/tewi/trunk@174 8739d7e6-ffea-ec47-b151-bdff447c6205 --- diff --git a/Server/config.c b/Server/config.c index a6a4d08..e620225 100644 --- a/Server/config.c +++ b/Server/config.c @@ -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" : ""); diff --git a/Server/tw_version.h b/Server/tw_version.h index 440d863..bc82bca 100644 --- a/Server/tw_version.h +++ b/Server/tw_version.h @@ -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);