Rpc Register IP

This commit is contained in:
wenxu12345
2022-06-23 09:24:05 +08:00
parent e4d35c2a86
commit 218340e138
13 changed files with 16 additions and 13 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ func (s *adminCMSServer) Run() {
defer srv.GracefulStop()
//Service registers with etcd
pbAdminCMS.RegisterAdminCMSServer(srv, s)
rpcRegisterIP := ""
rpcRegisterIP := config.Config.RpcRegisterIP
if config.Config.RpcRegisterIP == "" {
rpcRegisterIP, err = utils.GetLocalIP()
if err != nil {