From: Shuanglei Tao Date: Thu, 27 Apr 2023 04:40:10 +0000 (+0800) Subject: server: do not expose port to public by default X-Git-Url: http://git.prime8.dev/?a=commitdiff_plain;h=39206089c0094dcf075e07b19e7eda9ada47d020;p=ttyd.git server: do not expose port to public by default CVE-2021-34182 #692 --- diff --git a/src/server.c b/src/server.c index cc398bc..6e74bc2 100644 --- a/src/server.c +++ b/src/server.c @@ -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;