mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 22:06:20 +00:00
Disallow the blanket wildcard prefix from being used as custom host
This commit is contained in:
parent
a0e1f57ac2
commit
8d140ce9af
@ -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…
x
Reference in New Issue
Block a user