Listen to 0.0.0.0 on docker image
All checks were successful
CI / build (push) Successful in 1m1s

This commit is contained in:
Fijxu 2024-10-08 23:14:29 -03:00
parent 8c755cf28c
commit e537ff1a0b
Signed by: Fijxu
GPG key ID: 32C1DDF333EDA6A4
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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{