mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-25 19:22:46 +08:00
add RpcRegisterIP
This commit is contained in:
parent
17e1fa54cf
commit
38535bde84
@ -64,8 +64,8 @@ func (s *groupServer) Run() {
|
|||||||
//Service registers with etcd
|
//Service registers with etcd
|
||||||
pbGroup.RegisterGroupServer(srv, s)
|
pbGroup.RegisterGroupServer(srv, s)
|
||||||
|
|
||||||
rpcRegisterIP := ""
|
rpcRegisterIP := config.Config.RpcRegisterIP
|
||||||
if config.Config.RpcRegisterIP == "" {
|
if rpcRegisterIP == "" {
|
||||||
rpcRegisterIP, err = utils.GetLocalIP()
|
rpcRegisterIP, err = utils.GetLocalIP()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error("", "GetLocalIP failed ", err.Error())
|
log.Error("", "GetLocalIP failed ", err.Error())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user