From e537ff1a0b0ab73bfda3d142fa01857ef63b22a8 Mon Sep 17 00:00:00 2001 From: Fijxu Date: Tue, 8 Oct 2024 23:14:29 -0300 Subject: [PATCH] Listen to 0.0.0.0 on docker image --- Dockerfile | 2 +- main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 93d6a61..3a8d608 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,4 +17,4 @@ WORKDIR /app/ COPY --from=build /app/main /app/http3-ytproxy -CMD ./http3-ytproxy +CMD ./http3-ytproxy -l 0.0.0.0 diff --git a/main.go b/main.go index 73411e3..0807bd6 100644 --- a/main.go +++ b/main.go @@ -341,7 +341,7 @@ func main() { var https = flag.Bool("https", false, "Use built-in https server") flag.StringVar(&sock, "s", "/tmp/http-ytproxy.sock", "Specify a socket name") flag.StringVar(&port, "p", "8080", "Specify a port number") - flag.StringVar(&host, "l", "127.0.0.1", "Specify a listen address") + flag.StringVar(&host, "l", "0.0.0.0", "Specify a listen address") flag.Parse() srv := &http.Server{