fix http traffic forwarding

This commit is contained in:
ginuerzh
2023-01-30 14:38:13 +08:00
parent 43036f8e64
commit 3afa3b6860
3 changed files with 224 additions and 123 deletions

View File

@ -97,7 +97,7 @@ 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(match %s)", host, vhost)
p.options.logger.Debugf("find node for host: %s -> %s(%s)", host, node.Name, node.Addr)
}
}
if len(filters) == 0 {