From 75f577d91abafacd91e446fecfc85cca4d83a746 Mon Sep 17 00:00:00 2001 From: Max Date: Sat, 27 Nov 2021 20:34:25 +0800 Subject: [PATCH] =?UTF-8?q?v0.9.7=20=E6=94=AF=E6=8C=81=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- share/const.go | 28 +++------------------------- 1 file changed, 3 insertions(+), 25 deletions(-) diff --git a/share/const.go b/share/const.go index bd31c89d..5989acac 100644 --- a/share/const.go +++ b/share/const.go @@ -1,32 +1,10 @@ package share -import ( - "strings" -) - // VERSION 版本号 -const VERSION = "0.9.6" +const VERSION = "0.9.7" -// DOMAIN 许可域 +// DOMAIN 许可域(废弃) const DOMAIN = "*.iqka.com" -// AllowHosts 解析后的许可域 +// AllowHosts 解析后的许可域(废弃) var AllowHosts = []string{} - -// 初始化配置 -func init() { - - // 解析许可Host - domains := strings.Split(DOMAIN, "|") - for _, domain := range domains { - - if !strings.Contains(domain, ".") { - continue - } - - if strings.HasPrefix(domain, "*.") { - domain = strings.TrimPrefix(domain, "*.") - } - AllowHosts = append(AllowHosts, domain) - } -}