Skip to content

Commit

Permalink
Merge 8dc7e3b into backport/fix/gh-15210/sockaddr-template-parsing-wh…
Browse files Browse the repository at this point in the history
…en-needed/gladly-immense-gar
  • Loading branch information
hc-github-team-secure-vault-core committed Apr 29, 2022
2 parents a2c68b2 + 8dc7e3b commit 8173cfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internalshared/configutil/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ func ParseListeners(result *SharedConfig, list *ast.ObjectList) error {
// If the input doesn't appear to contain the 'template' format,
// it will return the specified input unchanged.
func ParseSingleIPTemplate(ipTmpl string) (string, error) {
m, err := regexp.MatchString("(.*?)({{.*?}})(.*)", ipTmpl)
m, err := regexp.MatchString("{{.*?}}", ipTmpl)
if err != nil {
return "", fmt.Errorf("unable to verify existence of template syntax in input %q: %v", ipTmpl, err)
} else if !m {
Expand Down

0 comments on commit 8173cfb

Please sign in to comment.