Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
bassosimone committed Sep 27, 2023
1 parent 532423f commit 25089e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/enginenetx/beaconspolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ var beaconsPolicyTestHelpersDomains = []string{
}

// TODO(bassosimone): this would be slices.Contains when we'll use go1.21
func beaconsPolicySliceContains(slice []string, value string) bool {
func beaconsPolicySlicesContains(slice []string, value string) bool {
for _, entry := range slice {
if value == entry {
return true
Expand All @@ -82,7 +82,7 @@ func (p *beaconsPolicy) maybeRewriteTestHelpersTactics(input <-chan *httpsDialer

for tactic := range input {
// When we're not connecting to a TH, pass the policy down the chain unmodified
if !beaconsPolicySliceContains(beaconsPolicyTestHelpersDomains, tactic.VerifyHostname) {
if !beaconsPolicySlicesContains(beaconsPolicyTestHelpersDomains, tactic.VerifyHostname) {
out <- tactic
continue
}
Expand Down

0 comments on commit 25089e8

Please sign in to comment.