mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-04 22:52:23 +08:00
feat: set Tun.stack to mips (#8144)
This commit is contained in:
@@ -61,7 +61,7 @@ pub mod files {
|
||||
}
|
||||
|
||||
pub mod tun {
|
||||
pub const DEFAULT_STACK: &str = "gvisor";
|
||||
pub const DEFAULT_STACK: &str = "mips";
|
||||
|
||||
pub const DNS_HIJACK: &[&str] = &["any:53"];
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ export function TunViewer({ ref }: { ref?: Ref<DialogRef> }) {
|
||||
|
||||
const [open, setOpen] = useState(false)
|
||||
const [values, setValues] = useState({
|
||||
stack: 'mixed',
|
||||
stack: 'mips',
|
||||
device: OS === 'macos' ? 'utun1024' : 'Mihomo',
|
||||
autoRoute: true,
|
||||
routeExcludeAddress: '',
|
||||
@@ -72,7 +72,7 @@ export function TunViewer({ ref }: { ref?: Ref<DialogRef> }) {
|
||||
const computedAutoRedirect =
|
||||
OS === 'linux' ? (nextAutoRoute ? rawAutoRedirect : false) : false
|
||||
setValues({
|
||||
stack: clash?.tun.stack ?? 'gvisor',
|
||||
stack: clash?.tun.stack ?? 'mips',
|
||||
device: clash?.tun.device ?? (OS === 'macos' ? 'utun1024' : 'Mihomo'),
|
||||
autoRoute: nextAutoRoute,
|
||||
routeExcludeAddress: (clash?.tun['route-exclude-address'] ?? []).join(
|
||||
@@ -148,7 +148,7 @@ export function TunViewer({ ref }: { ref?: Ref<DialogRef> }) {
|
||||
size="small"
|
||||
onClick={async () => {
|
||||
const tun: IConfigData['tun'] = {
|
||||
stack: 'gvisor',
|
||||
stack: 'mips',
|
||||
device: OS === 'macos' ? 'utun1024' : 'Mihomo',
|
||||
'auto-route': true,
|
||||
...(OS === 'linux'
|
||||
@@ -163,7 +163,7 @@ export function TunViewer({ ref }: { ref?: Ref<DialogRef> }) {
|
||||
mtu: 1500,
|
||||
}
|
||||
setValues({
|
||||
stack: 'gvisor',
|
||||
stack: 'mips',
|
||||
device: OS === 'macos' ? 'utun1024' : 'Mihomo',
|
||||
autoRoute: true,
|
||||
routeExcludeAddress: '',
|
||||
|
||||
Reference in New Issue
Block a user