mirror of
https://github.com/netbirdio/netbird.git
synced 2025-01-19 04:19:48 +01:00
Remove hardcoded debug lines
This commit is contained in:
parent
d1b6387803
commit
469be3442d
@ -252,6 +252,7 @@ func (c *ConnectClient) run(
|
|||||||
if token != nil {
|
if token != nil {
|
||||||
relayManager.UpdateToken(token)
|
relayManager.UpdateToken(token)
|
||||||
}
|
}
|
||||||
|
log.Infof("connecting to the Relay service %s", relayURL)
|
||||||
if err = relayManager.Serve(); err != nil {
|
if err = relayManager.Serve(); err != nil {
|
||||||
log.Error(err)
|
log.Error(err)
|
||||||
return wrapErr(err)
|
return wrapErr(err)
|
||||||
@ -315,12 +316,9 @@ func (c *ConnectClient) run(
|
|||||||
|
|
||||||
func parseRelayInfo(resp *mgmProto.LoginResponse) (string, *hmac.Token) {
|
func parseRelayInfo(resp *mgmProto.LoginResponse) (string, *hmac.Token) {
|
||||||
// todo remove this
|
// todo remove this
|
||||||
ra := peer.ForcedRelayAddress()
|
|
||||||
/*
|
|
||||||
if ra := peer.ForcedRelayAddress(); ra != "" {
|
if ra := peer.ForcedRelayAddress(); ra != "" {
|
||||||
return ra, nil
|
return ra, nil
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
msg := resp.GetWiretrusteeConfig().GetRelay()
|
msg := resp.GetWiretrusteeConfig().GetRelay()
|
||||||
if msg == nil {
|
if msg == nil {
|
||||||
@ -337,9 +335,7 @@ func parseRelayInfo(resp *mgmProto.LoginResponse) (string, *hmac.Token) {
|
|||||||
Signature: msg.GetTokenSignature(),
|
Signature: msg.GetTokenSignature(),
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Tracef("Relay URL: %s", url)
|
return url, token
|
||||||
|
|
||||||
return ra, token
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *ConnectClient) Engine() *Engine {
|
func (c *ConnectClient) Engine() *Engine {
|
||||||
|
Loading…
Reference in New Issue
Block a user