|
|
@ -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())
|
|
|
|