fix: 修复meta 的vless grpc订阅下发错误

This commit is contained in:
xboard 2023-11-17 15:11:52 +08:00
parent 65fe7682ff
commit f6ac12ee65
2 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ name: Docker
on:
push:
branches: [ "master" ]
branches: [ "dev" ]
# Publish semver tags as releases.
tags: [ 'v*.*.*' ]

View File

@ -232,8 +232,8 @@ class ClashMeta
}
if ($server['network'] === 'grpc') {
$array['network'] = 'grpc';
if ($server['networkSettings']) {
$grpcSettings = $server['networkSettings'];
if ($server['network_settings']) {
$grpcSettings = $server['network_settings'];
$array['grpc-opts'] = [];
if (isset($grpcSettings['serviceName'])) {
$array['grpc-opts']['grpc-service-name'] = $grpcSettings['serviceName'];