mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-12 01:00:34 +08:00
Enable tun for appprofile
This commit is contained in:
parent
ac41f1589d
commit
7dbb3ac36b
@ -148,6 +148,7 @@ export const buildSpeedtestDomainSet = task(import.meta.path, async () => {
|
||||
'.netspeedtestmaster.com',
|
||||
// Google Search Result of "speedtest", powered by this
|
||||
'.measurement-lab.org',
|
||||
'.measurementlab.net',
|
||||
// Google Fiber legacy speedtest site (new fiber speedtest use speedtestcustom.com)
|
||||
'.speed.googlefiber.net',
|
||||
// librespeed
|
||||
|
||||
@ -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) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user