Skip to content

Commit

Permalink
circuit: fix version filter logic bug
Browse files Browse the repository at this point in the history
  • Loading branch information
a3s7p committed Oct 25, 2021
1 parent 4405c4d commit 13a72e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions circuit/circuit.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ type T []*relayentry.T
// is incompatible with this wireleap.
func (t T) Partition() (fronting T, entropic T, backing T) {
for _, r := range t {
// exclude incompatible versions
if r.Versions.ClientRelay != nil && r.Versions.ClientRelay.Minor != clientrelay.T.Version.Minor {
// exclude older protocol & incompatible relays
if r.Versions.ClientRelay == nil || r.Versions.ClientRelay.Minor != clientrelay.T.Version.Minor {
continue
}

Expand Down

0 comments on commit 13a72e1

Please sign in to comment.