mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-28 17:41:54 +08:00
Enable tun for appprofile
This commit is contained in:
@@ -137,6 +137,19 @@ function generateAppProfile(
|
||||
' \'ipv6\' => true,',
|
||||
' \'log-level\' => \'error\',',
|
||||
' \'external-controller\' => \'0.0.0.0:9090\',',
|
||||
' \'tun\' => [',
|
||||
' \'enable\' => true,',
|
||||
' \'stack\' => \'system\',',
|
||||
' \'auto-route\' => true,',
|
||||
' \'auto-redir\' => true,',
|
||||
' \'auto-detect-interface\' => true,',
|
||||
' \'dns-hijack\' => [',
|
||||
' \'8.8.8.8:53\',',
|
||||
' \'any:53\',',
|
||||
' \'tcp://8.8.8.8:53\',',
|
||||
' \'tcp://any:53\',',
|
||||
' ]',
|
||||
' ]',
|
||||
'];',
|
||||
'',
|
||||
`$_ENV['Clash_Group_Indexes'] = [${JSON.stringify(POLICY_GROUPS.reduce<number[]>((acc, [, insertProxy], index) => {
|
||||
|
||||
Reference in New Issue
Block a user