fix host in v2ray links #474
This commit is contained in:
+2
-2
@@ -522,7 +522,7 @@ func getTransportParams(t interface{}) map[string]string {
|
||||
}
|
||||
if headers, ok := trasport["headers"].(map[string]interface{}); ok {
|
||||
if host, ok := headers["Host"].(string); ok {
|
||||
params["peer"] = host
|
||||
params["host"] = host
|
||||
}
|
||||
}
|
||||
case "grpc":
|
||||
@@ -531,7 +531,7 @@ func getTransportParams(t interface{}) map[string]string {
|
||||
}
|
||||
case "httpupgrade":
|
||||
if host, ok := trasport["host"].(string); ok {
|
||||
params["peer"] = host
|
||||
params["host"] = host
|
||||
}
|
||||
if path, ok := trasport["path"].(string); ok {
|
||||
params["path"] = path
|
||||
|
||||
Reference in New Issue
Block a user