mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-01-22 18:48:14 -05:00
fix: resolve Trojan subscription delivery issues in Loon and Shadowrocket
This commit is contained in:
parent
96df9305b6
commit
c3135d5ba9
@ -146,7 +146,7 @@ class Loon implements ProtocolInterface
|
|||||||
'udp=true'
|
'udp=true'
|
||||||
];
|
];
|
||||||
if (!empty($protocol_settings['allow_insecure'])) {
|
if (!empty($protocol_settings['allow_insecure'])) {
|
||||||
array_push($config, data_get($protocol_settings, 'tls_settings')['allow_insecure'] ? 'skip-cert-verify=true' : 'skip-cert-verify=false');
|
array_push($config, data_get($protocol_settings, 'allow_insecure') ? 'skip-cert-verify=true' : 'skip-cert-verify=false');
|
||||||
}
|
}
|
||||||
$config = array_filter($config);
|
$config = array_filter($config);
|
||||||
$uri = implode(',', $config);
|
$uri = implode(',', $config);
|
||||||
|
@ -197,8 +197,8 @@ class Shadowrocket implements ProtocolInterface
|
|||||||
{
|
{
|
||||||
$protocol_settings = $server['protocol_settings'];
|
$protocol_settings = $server['protocol_settings'];
|
||||||
$name = rawurlencode($server['name']);
|
$name = rawurlencode($server['name']);
|
||||||
$params['allowInsecure'] = data_get($protocol_settings, 'tls.allow_insecure');
|
$params['allowInsecure'] = data_get($protocol_settings, 'allow_insecure');
|
||||||
if ($serverName = data_get($protocol_settings, 'tls.server_name')) {
|
if ($serverName = data_get($protocol_settings, 'server_name')) {
|
||||||
$params['peer'] = $serverName;
|
$params['peer'] = $serverName;
|
||||||
}
|
}
|
||||||
switch (data_get($protocol_settings, 'network')) {
|
switch (data_get($protocol_settings, 'network')) {
|
||||||
|
Loading…
Reference in New Issue
Block a user