From 5be0be8a8d3e37e36268b7ce905e3ba559881322 Mon Sep 17 00:00:00 2001 From: zxb <919411476@qq.com> Date: Fri, 3 Nov 2023 13:10:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.MD | 1 + pkg/config/config.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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,