mirror of
https://github.com/MetaCubeX/ClashMetaForAndroid.git
synced 2026-05-09 18:11:26 +08:00
support set tun stack
This commit is contained in:
@@ -93,6 +93,22 @@ class NetworkSettingsDesign(
|
||||
)
|
||||
}
|
||||
|
||||
selectableList(
|
||||
value = srvStore::tunStackMode,
|
||||
values = arrayOf(
|
||||
"system",
|
||||
"gvisor",
|
||||
"mixed"
|
||||
),
|
||||
valuesText = arrayOf(
|
||||
R.string.tun_stack_system,
|
||||
R.string.tun_stack_gvisor,
|
||||
R.string.tun_stack_mixed
|
||||
),
|
||||
title = R.string.tun_stack_mode,
|
||||
configure = vpnDependencies::add,
|
||||
)
|
||||
|
||||
selectableList(
|
||||
value = srvStore::accessControlMode,
|
||||
values = AccessControlMode.values(),
|
||||
|
||||
@@ -232,6 +232,11 @@
|
||||
<string name="always_dark">Always Dark</string>
|
||||
<string name="always_light">Always Light</string>
|
||||
|
||||
<string name="tun_stack_mode">Stack Mode</string>
|
||||
<string name="tun_stack_system">System Stack</string>
|
||||
<string name="tun_stack_gvisor">Gvisor Stack</string>
|
||||
<string name="tun_stack_mixed">Mixed Stack</string>
|
||||
|
||||
<string name="allow_all_apps">Allow all apps</string>
|
||||
<string name="allow_selected_apps">Allow selected apps</string>
|
||||
<string name="deny_selected_apps">Deny selected apps</string>
|
||||
|
||||
Reference in New Issue
Block a user