Browse Source

types/logger: fix rate limiter allowlist

Upstream wireguard-go renamed the interface method
from CreateEndpoint to ParseEndpoint.
I updated the log call site but not the allowlist.

Signed-off-by: Josh Bleecher Snyder <[email protected]>
Josh Bleecher Snyder 4 years ago
parent
commit
f116a4c44f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      types/logger/logger.go

+ 1 - 1
types/logger/logger.go

@@ -66,7 +66,7 @@ var disableRateLimit = os.Getenv("TS_DEBUG_LOG_RATE") == "all"
 // Things should not be added to this unless they're already limited otherwise.
 // Things should not be added to this unless they're already limited otherwise.
 var rateFree = []string{
 var rateFree = []string{
 	"magicsock: disco: ",
 	"magicsock: disco: ",
-	"magicsock: CreateEndpoint:",
+	"magicsock: ParseEndpoint:",
 }
 }
 
 
 // RateLimitedFn is a wrapper for RateLimitedFnWithClock that includes the
 // RateLimitedFn is a wrapper for RateLimitedFnWithClock that includes the