From 51aaa16d7923d50af2b2c4cf0ab5164c69a379c6 Mon Sep 17 00:00:00 2001 From: Spedoske <52339623+Spedoske@users.noreply.github.com> Date: Thu, 9 Jul 2020 12:01:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=9A=8F=E6=9C=BA=E6=95=B0?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .goreleaser.yml | 3 +++ util.go | 1 + 2 files changed, 4 insertions(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index 34efefe..74f0998 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -27,8 +27,11 @@ archives: darwin: MacOS linux: Linux windows: Windows + freebsd: Freebsd 386: x86 amd64: x64 + files: + - ip.txt checksum: name_template: 'checksums.txt' snapshot: diff --git a/util.go b/util.go index 1b43093..3745c92 100644 --- a/util.go +++ b/util.go @@ -89,6 +89,7 @@ const failTime = 4 type CloudflareIPDataSet []CloudflareIPData func initipEndWith() { + rand.Seed(time.Now().UnixNano()) ipEndWith = uint8(rand.Intn(254) + 1) }