From 9ee51a96d8a22342feeef6ae2211e500a65c3917 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=B1=E8=88=9E=E8=80=85?= Date: Thu, 19 Dec 2024 23:09:06 +0800 Subject: [PATCH 1/2] Update release.yml --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9d7d36a..2ff83ef 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,7 +37,7 @@ jobs: with: distribution: goreleaser version: latest - args: "release --clean --debug -f .github/conf/.goreleaser.yml" + args: "release --clean -f .github/conf/.goreleaser.yml" workdir: . env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From a852bc569f8ee90711f7deadc750ee05ce195f18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9F=8F=E5=96=B5Sakura?= <38121125+BaiMeow@users.noreply.github.com> Date: Tue, 7 Jan 2025 17:59:02 +0800 Subject: [PATCH 2/2] Fix 192.168 should mask 16 --- common/ParseIP.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/ParseIP.go b/common/ParseIP.go index 66084be..1362c1a 100644 --- a/common/ParseIP.go +++ b/common/ParseIP.go @@ -89,7 +89,7 @@ func parseIP(ip string) []string { reg := regexp.MustCompile(`[a-zA-Z]+`) switch { case ip == "192": - return parseIP("192.168.0.0/8") + return parseIP("192.168.0.0/16") case ip == "172": return parseIP("172.16.0.0/12") case ip == "10":