forward non-HTTP traffic based on host

This commit is contained in:
ginuerzh
2023-01-30 21:09:21 +08:00
parent 3afa3b6860
commit 1c6bc9283e
11 changed files with 127 additions and 13 deletions

View File

@ -97,7 +97,6 @@ func (p *chainHop) Select(ctx context.Context, opts ...chain.SelectOption) *chai
if vhost == host ||
vhost[0] == '.' && strings.HasSuffix(host, vhost[1:]) {
filters = append(filters, node)
p.options.logger.Debugf("find node for host: %s -> %s(%s)", host, node.Name, node.Addr)
}
}
if len(filters) == 0 {