增加Docker镜像构建脚本

This commit is contained in:
GoEdgeLab
2022-11-13 18:46:30 +08:00
parent 55e2e7c958
commit 81e1edae2a
6 changed files with 49 additions and 1 deletions

View File

@@ -22,7 +22,7 @@ func (this *IndexAction) RunGet(params struct{}) {
currentHost = host
}
}
if net.ParseIP(currentHost) != nil {
if net.ParseIP(currentHost) != nil && currentHost != "localhost" && currentHost != "127.0.0.1" {
this.Data["currentHost"] = currentHost
} else {
this.Data["currentHost"] = ""