diff --git a/README.MD b/README.MD index 1c1b737..0a5d95a 100644 --- a/README.MD +++ b/README.MD @@ -11,6 +11,7 @@ swag init -d ./ -g ./main.go -pd 编译 ```shell +export CGO_ENABLED=0 go build -o iptables-helper main.go ``` diff --git a/pkg/config/config.go b/pkg/config/config.go index 9c22210..b90563d 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -20,7 +20,7 @@ type ServerConfig struct { func DefaultConfig() *Conf { return &Conf{ Server: &ServerConfig{ - Addr: ":6573", + Addr: ":6575", PreFork: true, CaseSensitive: true, StrictRouting: false,