This commit is contained in:
man00k
2026-01-30 16:49:29 +08:00
parent 83c1e36469
commit 959901fcad
15 changed files with 190 additions and 24 deletions

View File

@@ -1,9 +1,9 @@
package gfetcd
import (
"code.infininov.com/Infini/unitech-golib/tlog"
"context"
"fmt"
"github.com/MAN00K/unitech_golib/tlog"
"os"
"strings"
"time"

View File

@@ -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 {