Skip to content

Commit

Permalink
ipn/proxy: impl stub proxifier.Reaches
Browse files Browse the repository at this point in the history
  • Loading branch information
ignoramous committed Oct 16, 2024
1 parent 24a0566 commit ba4b0dd
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions intra/ipn/proxies.go
Original file line number Diff line number Diff line change
Expand Up @@ -509,9 +509,16 @@ func (px *proxifier) Contains(ipprefix string) bool {
return false
}

func (px *proxifier) Reaches(ippcsv string) bool {
// TODO: stub
return px.Contains(ippcsv)
func (px *proxifier) Reaches(hostportOrIPPortCsv string) bool {
px.RLock()
defer px.RUnlock()

for _, p := range px.p {
if r := p.Router(); r != nil && r.Reaches(hostportOrIPPortCsv) {
return true
}
}
return false
}

// Implements x.Rpn.
Expand Down

0 comments on commit ba4b0dd

Please sign in to comment.