diff --git a/transport/internet/hysteria/hub.go b/transport/internet/hysteria/hub.go index c0cc641ba..4a41aa8f4 100644 --- a/transport/internet/hysteria/hub.go +++ b/transport/internet/hysteria/hub.go @@ -231,8 +231,8 @@ func Listen(ctx context.Context, address net.Address, port net.Port, streamSetti transport.TLSClientConfig.InsecureSkipVerify = true } case "", "unix": - u = &url.URL{Scheme: "http", Host: "localhost"} path := u.Path + u = &url.URL{Scheme: "http", Host: "localhost"} dialer := &net.Dialer{Timeout: 30 * time.Second} transport = transport.Clone() transport.Proxy = nil