|
@@ -97,7 +97,9 @@ discard block |
|
|
block discarded – undo |
|
97
|
97
|
"max_early_data" => $pathProcess['max_early_data'], |
|
98
|
98
|
"early_data_header_name" => "Sec-WebSocket-Protocol", |
|
99
|
99
|
]; |
|
100
|
|
- if ($configResult["transport"]["headers"]["Host"] === "" || is_null($configResult["transport"]["headers"]["Host"])) return null; |
|
|
100
|
+ if ($configResult["transport"]["headers"]["Host"] === "" || is_null($configResult["transport"]["headers"]["Host"])) { |
|
|
101
|
+ return null; |
|
|
102
|
+ } |
|
101
|
103
|
} elseif ($decode_vmess["net"] === "grpc") { |
|
102
|
104
|
$configResult["transport"] = [ |
|
103
|
105
|
"type" => $decode_vmess["net"], |
|
@@ -106,7 +108,9 @@ discard block |
|
|
block discarded – undo |
|
106
|
108
|
"ping_timeout" => "15s", |
|
107
|
109
|
"permit_without_stream" => false, |
|
108
|
110
|
]; |
|
109
|
|
- if ($configResult["transport"]["service_name"] === "" || is_null($configResult["transport"]["service_name"])) return null; |
|
|
111
|
+ if ($configResult["transport"]["service_name"] === "" || is_null($configResult["transport"]["service_name"])) { |
|
|
112
|
+ return null; |
|
|
113
|
+ } |
|
110
|
114
|
} |
|
111
|
115
|
|
|
112
|
116
|
return $configResult; |
|
@@ -200,8 +204,12 @@ discard block |
|
|
block discarded – undo |
|
200
|
204
|
$transportTypes[$decoded_vless["params"]["type"]]; |
|
201
|
205
|
} |
|
202
|
206
|
} |
|
203
|
|
- if ($decoded_vless["params"]["type"] === "ws" && ($configResult["transport"]["headers"]["Host"] === "" || is_null($configResult["transport"]["headers"]["Host"]))) return null; |
|
204
|
|
- if ($decoded_vless["params"]["type"] === "grpc" && ($configResult["transport"]["service_name"] === "" || is_null($configResult["transport"]["service_name"]))) return null; |
|
|
207
|
+ if ($decoded_vless["params"]["type"] === "ws" && ($configResult["transport"]["headers"]["Host"] === "" || is_null($configResult["transport"]["headers"]["Host"]))) { |
|
|
208
|
+ return null; |
|
|
209
|
+ } |
|
|
210
|
+ if ($decoded_vless["params"]["type"] === "grpc" && ($configResult["transport"]["service_name"] === "" || is_null($configResult["transport"]["service_name"]))) { |
|
|
211
|
+ return null; |
|
|
212
|
+ } |
|
205
|
213
|
return $configResult; |
|
206
|
214
|
} |
|
207
|
215
|
|
Please login to merge, or discard this patch.