diff --git a/client/internal/connection.go b/client/internal/connection.go index 3a0f90fcf..0b5ee01e9 100644 --- a/client/internal/connection.go +++ b/client/internal/connection.go @@ -128,6 +128,8 @@ func (conn *Connection) Open(timeout time.Duration) error { a, err := ice.NewAgent(&ice.AgentConfig{ // MulticastDNSMode: ice.MulticastDNSModeQueryAndGather, NetworkTypes: []ice.NetworkType{ice.NetworkTypeUDP4}, + PortMin: 57830, + PortMax: 57830, Urls: conn.Config.StunTurnURLS, CandidateTypes: []ice.CandidateType{ice.CandidateTypeHost, ice.CandidateTypeServerReflexive, ice.CandidateTypeRelay}, InterfaceFilter: func(s string) bool { @@ -160,7 +162,7 @@ func (conn *Connection) Open(timeout time.Duration) error { } conn.Status = StatusConnecting - log.Infof("trying to connect to peer %s", conn.Config.RemoteWgKey.String()) + log.Debugf("trying to connect to peer %s", conn.Config.RemoteWgKey.String()) // wait until credentials have been sent from the remote peer (will arrive via a signal server) select { diff --git a/client/internal/engine.go b/client/internal/engine.go index f3f1e6b0c..1fd011635 100644 --- a/client/internal/engine.go +++ b/client/internal/engine.go @@ -158,7 +158,7 @@ func (e *Engine) initializePeer(peer Peer) { if err != nil { log.Warnln(err) - log.Warnln("retrying connection because of error: ", err.Error()) + log.Debugf("retrying connection because of error: %s", err.Error()) return err } return nil