Merge pull request #331 from wsczx/dev

修复更换自定义首页状态码不生效的Bug
This commit is contained in:
bjdgyc 2024-08-27 15:41:41 +08:00 committed by GitHub
commit 52329e8a2b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -28,11 +28,11 @@ func LinkHome(w http.ResponseWriter, r *http.Request) {
return
}
if index.Homecode > 0 {
if index.Homecode != http.StatusOK {
w.WriteHeader(index.Homecode)
} else {
w.WriteHeader(http.StatusOK)
return
}
w.WriteHeader(http.StatusOK)
// if index.Homeindex == "" {
// index.Homeindex = "AnyLink 是一个企业级远程办公 SSL VPN 软件,可以支持多人同时在线使用。"