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) }