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
@@ -44,7 +44,7 @@ func (r *RPCServer) run() {
srv := grpc.NewServer()
defer srv.GracefulStop()
pbPush.RegisterPushMsgServiceServer(srv, r)
rpcRegisterIP := ""
rpcRegisterIP := config.Config.RpcRegisterIP
if config.Config.RpcRegisterIP == "" {
rpcRegisterIP, err = utils.GetLocalIP()
if err != nil {