diff --git a/connection_manager.go b/connection_manager.go index 100e02e3..1712a6e2 100644 --- a/connection_manager.go +++ b/connection_manager.go @@ -365,7 +365,6 @@ func (cm *connectionManager) makeTrafficDecision(localIndex uint32, now time.Tim return cm.makeLaneTrafficDecision(hostinfo, now) } - primary := cm.hostMap.Hosts[hostinfo.vpnAddrs[0]] mainHostInfo := true if primary != nil && primary != hostinfo { diff --git a/handshake_manager.go b/handshake_manager.go index b80c18cf..93ab61db 100644 --- a/handshake_manager.go +++ b/handshake_manager.go @@ -1012,7 +1012,6 @@ func (hm *HandshakeManager) beginHandshake(via ViaSender, packet []byte, h *head return } - hostinfo := &HostInfo{ ConnectionState: connState, localIndexId: result.LocalIndex,