fix: golint errors

This commit is contained in:
braginini
2021-06-24 10:55:05 +02:00
parent 0e313eec24
commit 561bd681d9
2 changed files with 10 additions and 5 deletions

View File

@@ -154,6 +154,9 @@ func (conn *Connection) Open(timeout time.Duration) error {
if pair.Local.Type() == ice.CandidateTypeHost && pair.Remote.Type() == ice.CandidateTypeHost {
log.Debugf("remote peer %s is in the local network with an address %s", conn.Config.RemoteWgKey.String(), pair.Remote.Address())
err = conn.wgProxy.StartLocal(fmt.Sprintf("%s:%d", pair.Remote.Address(), iface.WgPort))
if err != nil {
return err
}
} else {
err = conn.wgProxy.Start(remoteConn)
if err != nil {