Skip to content

Commit

Permalink
Update SingBox.php
Browse files Browse the repository at this point in the history
  • Loading branch information
77-QiQi authored Jul 24, 2024
1 parent 257a5aa commit 3df0676
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Services/Subscribe/SingBox.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ public function getContent($user): string
$path = $node_custom_config['header']['request']['path'][0] ?? $node_custom_config['path'] ?? '';
$headers = $node_custom_config['header']['request']['headers'] ?? [];
$service_name = $node_custom_config['servicename'] ?? '';
$utls = $node_custom_config['utls'] ?? false;

$node = [
'type' => 'vmess',
Expand All @@ -104,8 +105,14 @@ public function getContent($user): string
'tls' => [
'enabled' => true,
'server_name' => $host,
'utls' => [
'enabled' => $utls,
'fingerprint' => 'chrome',
],
],
'packet_encoding' => 'packetaddr',
'packet_encoding' => 'xudp',
'global_padding' => true,
'authenticated_length' => true,
'transport' => [
'type' => $transport,
'path' => $path,
Expand Down

0 comments on commit 3df0676

Please sign in to comment.