add chain hop

This commit is contained in:
ginuerzh
2022-09-20 11:48:30 +08:00
parent 50d443049f
commit 41ff9835a6
8 changed files with 293 additions and 527 deletions

View File

@ -10,7 +10,7 @@ import (
"github.com/go-gost/core/resolver"
)
func resolve(ctx context.Context, network, addr string, r resolver.Resolver, hosts hosts.HostMapper, log logger.Logger) (string, error) {
func Resolve(ctx context.Context, network, addr string, r resolver.Resolver, hosts hosts.HostMapper, log logger.Logger) (string, error) {
if addr == "" {
return addr, nil
}