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")) {