Use a list for relay IPs instead of a map (#1423)

* Use a list for relay IPs instead of a map

* linter
This commit is contained in:
brad-defined
2025-07-02 08:47:05 -04:00
committed by GitHub
parent e4b7dbcfb0
commit b158eb0c4c
5 changed files with 46 additions and 11 deletions

View File

@@ -249,7 +249,7 @@ func ixHandshakeStage1(f *Interface, addr netip.AddrPort, via *ViaSender, packet
HandshakePacket: make(map[uint8][]byte, 0),
lastHandshakeTime: hs.Details.Time,
relayState: RelayState{
relays: map[netip.Addr]struct{}{},
relays: nil,
relayForByAddr: map[netip.Addr]*Relay{},
relayForByIdx: map[uint32]*Relay{},
},