diff --git a/internal/cmd/base/servers.go b/internal/cmd/base/servers.go index 24bf55fa0e..b5392a53b1 100644 --- a/internal/cmd/base/servers.go +++ b/internal/cmd/base/servers.go @@ -58,11 +58,9 @@ const ( WorkerAuthReqFile = "auth_request_token" ) -var ( - // This regular expression is used to find all instances of square brackets within a string. - // This regular expression is used to remove the square brackets from an IPv6 address. - squareBrackets = regexp.MustCompile("\\[|\\]") -) +// This regular expression is used to find all instances of square brackets within a string. +// This regular expression is used to remove the square brackets from an IPv6 address. +var squareBrackets = regexp.MustCompile("\\[|\\]") func init() { metric.InitializeBuildInfo(prometheus.DefaultRegisterer) diff --git a/internal/cmd/config/config.go b/internal/cmd/config/config.go index 58781ee252..ab1c2d3a94 100644 --- a/internal/cmd/config/config.go +++ b/internal/cmd/config/config.go @@ -133,11 +133,9 @@ kms "aead" { defaultCsp = "default-src 'none'; script-src 'self' 'wasm-unsafe-eval'; frame-src 'self'; font-src 'self'; connect-src 'self'; img-src 'self' data:; style-src 'self'; media-src 'self'; manifest-src 'self'; style-src-attr 'self'; frame-ancestors 'self'" ) -var ( - // This regular expression is used to find all instances of square brackets within a string. - // This regular expression is used to remove the square brackets from an IPv6 address. - squareBrackets = regexp.MustCompile("\\[|\\]") -) +// This regular expression is used to find all instances of square brackets within a string. +// This regular expression is used to remove the square brackets from an IPv6 address. +var squareBrackets = regexp.MustCompile("\\[|\\]") // Config is the configuration for the boundary controller type Config struct {