Skip to content

Commit

Permalink
Mark the correct relay as Established. Oops.
Browse files Browse the repository at this point in the history
  • Loading branch information
brad-defined committed Nov 13, 2024
1 parent 86dfbb1 commit 6bbbf50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handshake_ix.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ func ixHandshakeStage1(f *Interface, addr netip.AddrPort, via *ViaSender, packet
hostinfo.relayState.InsertRelayTo(via.relayHI.vpnAddrs[0])
// I successfully received a handshake. Just in case I marked this tunnel as 'Disestablished', ensure
// it's correctly marked as working.
hostinfo.relayState.UpdateRelayForByIdxState(via.remoteIdx, Established)
via.relayHI.relayState.UpdateRelayForByIdxState(via.remoteIdx, Established)
f.SendVia(via.relayHI, via.relay, msg, make([]byte, 12), make([]byte, mtu), false)
f.l.WithField("vpnAddrs", vpnAddrs).WithField("relay", via.relayHI.vpnAddrs[0]).
WithField("certName", certName).
Expand Down

0 comments on commit 6bbbf50

Please sign in to comment.