mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 05:00:30 +08:00
fix tun for some linux
This commit is contained in:
parent
cf91a0932e
commit
41efcd910c
@ -43,8 +43,10 @@ const TunSwitcher: React.FC = () => {
|
|||||||
setOpenPasswordModal(true)
|
setOpenPasswordModal(true)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (!encryptionAvailable) {
|
if (!appConfig?.encryptedPassword && !encryptionAvailable) {
|
||||||
alert('加密不可用,请手动给内核授权')
|
alert('加密不可用,请手动给内核授权')
|
||||||
|
await patchAppConfig({ encryptedPassword: [] })
|
||||||
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user