add webapi for ingress

This commit is contained in:
ginuerzh
2023-01-15 17:44:12 +08:00
parent 82cd924c86
commit 834c6447ca
4 changed files with 285 additions and 1 deletions

View File

@ -127,7 +127,7 @@ func (ing *ingress) reload(ctx context.Context) error {
}
host := rule.Host
if host[0] == '*' {
host = "." + host[1:]
host = host[1:]
}
rules[host] = rule
}