diff --git a/cmd/dashboard/controller/member_api.go b/cmd/dashboard/controller/member_api.go
index 86f6470..23added 100644
--- a/cmd/dashboard/controller/member_api.go
+++ b/cmd/dashboard/controller/member_api.go
@@ -452,6 +452,7 @@ type settingForm struct {
EnableIPChangeNotification string
IgnoredIPNotification string
Oauth2Type string
+ GRPCHost string
Cover uint8
}
@@ -466,6 +467,7 @@ func (ma *memberAPI) updateSetting(c *gin.Context) {
}
dao.Conf.EnableIPChangeNotification = sf.EnableIPChangeNotification == "on"
dao.Conf.Cover = sf.Cover
+ dao.Conf.GRPCHost = sf.GRPCHost
dao.Conf.IgnoredIPNotification = sf.IgnoredIPNotification
dao.Conf.Site.Brand = sf.Title
dao.Conf.Site.Theme = sf.Theme
diff --git a/cmd/dashboard/main.go b/cmd/dashboard/main.go
index 3b6026b..16982f0 100644
--- a/cmd/dashboard/main.go
+++ b/cmd/dashboard/main.go
@@ -2,7 +2,6 @@ package main
import (
"context"
- "github.com/naiba/nezha/util"
"log"
"time"
@@ -47,9 +46,6 @@ func init() {
if dao.Conf.GRPCPort == 0 {
dao.Conf.GRPCPort = 5555
}
- if dao.Conf.GRPCHost == "" {
- dao.Conf.GRPCHost = util.FetchGeoIP(false).IP
- }
dao.Cache = cache.New(5*time.Minute, 10*time.Minute)
initSystem()
diff --git a/resource/static/main.js b/resource/static/main.js
index f1e2162..f0f81cc 100644
--- a/resource/static/main.js
+++ b/resource/static/main.js
@@ -174,8 +174,6 @@ function addOrEditServer(server, conf) {
modal.find(".secret.field").attr("style", "");
modal.find(".command.field").attr("style", "");
modal.find(".command.hostSecret").text(server.Secret);
- modal.find(".command.GRPCHost").text(conf.GRPCHost);
- modal.find(".command.GRPCPort").text(conf.GRPCPort);
modal.find("input[name=secret]").val(server.Secret);
} else {
modal.find(".secret.field").attr("style", "display:none");
diff --git a/resource/template/common/footer.html b/resource/template/common/footer.html
index 6face13..758e24c 100644
--- a/resource/template/common/footer.html
+++ b/resource/template/common/footer.html
@@ -9,7 +9,7 @@
-
+