Browse Source

Disallow the blanket wildcard prefix from being used as custom host

pull/7759/head
Kyle Havlovitz 5 years ago
parent
commit
8d140ce9af
  1. 4
      agent/structs/config_entry_gateways.go

4
agent/structs/config_entry_gateways.go

@ -190,6 +190,10 @@ func validateHost(host string) error {
return fmt.Errorf("Host %q is not valid, a wildcard specifier is only allowed as the leftmost label", host)
}
if host == "*" {
return fmt.Errorf("Host '*' is not allowed, wildcards can only be used as a prefix/suffix")
}
return nil
}

Loading…
Cancel
Save