Protocol Shadowrocket: fixed a typo

This commit is contained in:
NekoCareLab 2025-01-13 23:11:18 +08:00
parent 3ed6b764ea
commit 3b9cc99526
No known key found for this signature in database

View File

@ -97,7 +97,7 @@ class Shadowrocket implements ProtocolInterface
switch (data_get($protocol_settings, 'network')) {
case 'tcp':
$config['obfs'] = data_get($protocol_settings, 'network_settings.header.type');
$config['path'] = \Arr::ra(data_get($protocol_settings, 'network_settings.header.request.path', ['/']));
$config['path'] = \Arr::random(data_get($protocol_settings, 'network_settings.header.request.path', ['/']));
break;
case 'ws':
$config['obfs'] = "websocket";