We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a04cf3e commit 2f3ab3aCopy full SHA for 2f3ab3a
clash/mihomo-curl-line/docker-entrypoint.sh
@@ -224,10 +224,10 @@ parse_vmess() {
224
# 构建网络选项
225
local network_opts=""
226
if [ "$network" = "ws" ]; then
227
- network_opts="\"ws-opts\": {\"path\": \"$path\", \"headers\": {\"Host\": \"$host_header\"}},"
+ network_opts="\"ws-opts\": {\"path\": \"$path\", \"headers\": {\"Host\": \"$host_header\"}}"
228
elif [ "$network" = "grpc" ]; then
229
local grpc_service_name=${path:-""}
230
- network_opts="\"grpc-opts\": {\"grpc-service-name\": \"$grpc_service_name\"},"
+ network_opts="\"grpc-opts\": {\"grpc-service-name\": \"$grpc_service_name\"}"
231
fi
232
233
[ -z "$name" ] && [ -n "$server" ] && [ -n "$port" ] && name="vmess-${server}:${port}"
0 commit comments