mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-08-08 14:29:42 +08:00
修复更换自定义首页状态码不生效的Bug
This commit is contained in:
@@ -28,11 +28,11 @@ func LinkHome(w http.ResponseWriter, r *http.Request) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if index.Homecode > 0 {
|
if index.Homecode != http.StatusOK {
|
||||||
w.WriteHeader(index.Homecode)
|
w.WriteHeader(index.Homecode)
|
||||||
} else {
|
return
|
||||||
w.WriteHeader(http.StatusOK)
|
|
||||||
}
|
}
|
||||||
|
w.WriteHeader(http.StatusOK)
|
||||||
|
|
||||||
// if index.Homeindex == "" {
|
// if index.Homeindex == "" {
|
||||||
// index.Homeindex = "AnyLink 是一个企业级远程办公 SSL VPN 软件,可以支持多人同时在线使用。"
|
// index.Homeindex = "AnyLink 是一个企业级远程办公 SSL VPN 软件,可以支持多人同时在线使用。"
|
||||||
|
Reference in New Issue
Block a user