Skip to content

Commit 537f50c

Browse files
authored
Listen only on localhost (#1230)
1 parent e124953 commit 537f50c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/precompile.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ try
1919
cert, key = joinpath.(@__DIR__, "../test", "resources", ("cert.pem", "key.pem"))
2020
sslconfig = MbedTLS.SSLConfig(cert, key)
2121

22-
server = HTTP.serve!("0.0.0.0", _port; verbose = -1, listenany=true, sslconfig=sslconfig) do req
22+
server = HTTP.serve!(Sockets.localhost, _port; verbose = -1, listenany=true, sslconfig=sslconfig) do req
2323
HTTP.Response(200, ["Content-Encoding" => "gzip"], gzip_data("dummy response"))
2424
end
2525
try

0 commit comments

Comments
 (0)