]> prime8.dev >> repos - ttyd.git/commitdiff
server: do not expose port to public by default
authorShuanglei Tao <tsl0922@gmail.com>
Thu, 27 Apr 2023 04:40:10 +0000 (12:40 +0800)
committerShuanglei Tao <tsl0922@gmail.com>
Thu, 27 Apr 2023 04:46:42 +0000 (12:46 +0800)
CVE-2021-34182 #692

src/server.c

index cc398bc50fd285c1366725a59b0f0662f9100079..6e74bc2498c23c229f3fcabbe438eb46e8b10afc 100644 (file)
@@ -324,7 +324,7 @@ int main(int argc, char **argv) {
   info.max_http_header_data = 65535;
 
   int debug_level = LLL_ERR | LLL_WARN | LLL_NOTICE;
-  char iface[128] = "";
+  char iface[128] = "127.0.0.1";
   char socket_owner[128] = "";
   bool browser = false;
   bool ssl = false;