update
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/MAN00K/unitech_golib/tlog"
|
||||
"code.infininov.com/Infini/unitech-golib/tlog"
|
||||
|
||||
"github.com/coreos/etcd/clientv3"
|
||||
etcdnaming "github.com/coreos/etcd/clientv3/naming"
|
||||
@@ -31,7 +31,7 @@ func (self *NameConfig) GetAddr() string {
|
||||
return self.Addr
|
||||
}
|
||||
|
||||
//获取本机的内网Ip, 如果发现对方的ip 和自己的ip 相同,用127.0.0.1 替代
|
||||
// 获取本机的内网Ip, 如果发现对方的ip 和自己的ip 相同,用127.0.0.1 替代
|
||||
func getLocalIP() string {
|
||||
ifaces, _ := net.Interfaces()
|
||||
for _, i := range ifaces {
|
||||
|
||||
Reference in New Issue
Block a user