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
@@ -64,7 +64,7 @@ func (rpc *rpcChat) Run() {
srv := grpc.NewServer()
defer srv.GracefulStop()
rpcRegisterIP := ""
rpcRegisterIP := config.Config.RpcRegisterIP
pbChat.RegisterChatServer(srv, rpc)
if config.Config.RpcRegisterIP == "" {
rpcRegisterIP, err = utils.GetLocalIP()