Skip to content

Commit 2f3ab3a

Browse files
committed
grpc 去除,
1 parent a04cf3e commit 2f3ab3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clash/mihomo-curl-line/docker-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,10 @@ parse_vmess() {
224224
# 构建网络选项
225225
local network_opts=""
226226
if [ "$network" = "ws" ]; then
227-
network_opts="\"ws-opts\": {\"path\": \"$path\", \"headers\": {\"Host\": \"$host_header\"}},"
227+
network_opts="\"ws-opts\": {\"path\": \"$path\", \"headers\": {\"Host\": \"$host_header\"}}"
228228
elif [ "$network" = "grpc" ]; then
229229
local grpc_service_name=${path:-""}
230-
network_opts="\"grpc-opts\": {\"grpc-service-name\": \"$grpc_service_name\"},"
230+
network_opts="\"grpc-opts\": {\"grpc-service-name\": \"$grpc_service_name\"}"
231231
fi
232232

233233
[ -z "$name" ] && [ -n "$server" ] && [ -n "$port" ] && name="vmess-${server}:${port}"

0 commit comments

Comments
 (0)