Info -> Debug on xgress_edge_tunnel dial result

This commit is contained in:
Paul Lorenz
2023-04-13 10:54:35 -04:00
parent d8e50ba43e
commit 3c9e9ccbde
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -227,7 +227,7 @@ func (self *EdgeRouterManager) IsAccessToEdgeRouterAllowed(identityId, serviceId
return nil
})
if err != nil {
return false, nil
return false, err
}
return result, nil
}
@@ -249,7 +249,7 @@ func (self *EdgeRouterManager) IsSharedEdgeRouterPresent(identityId, serviceId s
return nil
})
if err != nil {
return false, nil
return false, err
}
return result, nil
}
+1 -1
View File
@@ -35,7 +35,7 @@ type dialer struct {
options *Options
}
func (dialer dialer) IsTerminatorValid(id string, destination string) bool {
func (dialer *dialer) IsTerminatorValid(id string, destination string) bool {
destParts := strings.Split(destination, ":")
if len(destParts) != 2 {
return false
+1 -1
View File
@@ -61,7 +61,7 @@ func (self *tunneler) Dial(params xgress.DialParams) (xt.PeerData, error) {
return nil, err
}
log.Infof("successful connection %v->%v for destination %v", conn.LocalAddr(), conn.RemoteAddr(), destination)
log.Debugf("successful connection %v->%v for destination %v", conn.LocalAddr(), conn.RemoteAddr(), destination)
xgConn := xgress_common.NewXgressConn(conn, halfClose, false)
peerData := make(xt.PeerData, 3)