proxy: optimize NewConn, avoid loop

This commit is contained in:
nadoo committed 2020-10-11 18:46:15 +08:00
1 parent 40ddd1be3a
commit 6fff126e4b
6 files changed
+14 -13

No files matched your search

+1 -1
View File
@@ -54,9 +54,9 @@ func NewVLess(s string, d proxy.Dialer, p proxy.Proxy) (*VLess, error) {
proxy: p,
addr: addr,
uuid: uuid,
// fallback: "127.0.0.1:80",
}
// v.fallback = "127.0.0.1:80"
if custom := u.Query().Get("fallback"); custom != "" {
v.fallback = custom
}