mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-28 03:37:40 +02:00
run as non root and non host network mode
This commit is contained in:
@@ -41,7 +41,7 @@ func TestHTTPConfigDeserialize(t *testing.T) {
|
||||
if err != nil {
|
||||
ExpectNoError(t, err)
|
||||
}
|
||||
ExpectDeepEqual(t, cfg.HTTPConfig, &tt.expected)
|
||||
ExpectDeepEqual(t, cfg.HTTPConfig, tt.expected)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -116,6 +116,11 @@ func (e *RawEntry) Finalize() {
|
||||
}
|
||||
}
|
||||
|
||||
switch e.Host {
|
||||
case "localhost", "127.0.0.1", "[::1]":
|
||||
e.Host = "host.docker.internal"
|
||||
}
|
||||
|
||||
if e.Scheme == "" && isDocker {
|
||||
switch {
|
||||
case e.Host == cont.PublicIP && cont.PublicPortMapping[pp].Type == "udp":
|
||||
|
||||
Reference in New Issue
Block a user