Add runtime warnings

This commit is contained in:
世界 2022-07-24 22:54:16 +08:00
parent 29c329dc52
commit 32e2730ec6
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
29 changed files with 677 additions and 16 deletions

View file

@ -5,6 +5,7 @@ import (
"testing"
"time"
C "github.com/sagernet/sing-box/constant"
F "github.com/sagernet/sing/common/format"
"github.com/docker/docker/api/types"
@ -47,7 +48,7 @@ func startDockerContainer(t *testing.T, options DockerOptions) {
containerOptions.ExposedPorts = make(nat.PortSet)
var hostOptions container.HostConfig
if !isDarwin {
if !C.IsDarwin {
hostOptions.NetworkMode = "host"
}
hostOptions.PortBindings = make(nat.PortMap)