From 8b1098917f3fde1ac60c294080486f5706f19bfc Mon Sep 17 00:00:00 2001 From: wsczx Date: Sun, 25 Sep 2022 06:03:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/handler/link_home.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/handler/link_home.go b/server/handler/link_home.go index 035a924..833e0d5 100644 --- a/server/handler/link_home.go +++ b/server/handler/link_home.go @@ -13,7 +13,8 @@ func LinkHome(w http.ResponseWriter, r *http.Request) { // fmt.Println(r.RemoteAddr) // hu, _ := httputil.DumpRequest(r, true) // fmt.Println("DumpHome: ", string(hu)) - index := &dbdata.SettingOther + index := &dbdata.SettingOther{} + dbdata.SettingGet(index) connection := strings.ToLower(r.Header.Get("Connection")) userAgent := strings.ToLower(r.UserAgent()) if connection == "close" && (strings.Contains(userAgent, "anyconnect") || strings.Contains(userAgent, "openconnect")) {