mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-04-05 04:47:37 +03:00
Add runtime warnings
This commit is contained in:
parent
29c329dc52
commit
32e2730ec6
29 changed files with 677 additions and 16 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue