fix tun for some linux

This commit is contained in:
pompurin404 2024-08-25 14:09:00 +08:00
parent cf91a0932e
commit 41efcd910c
No known key found for this signature in database

View File

@ -43,8 +43,10 @@ const TunSwitcher: React.FC = () => {
setOpenPasswordModal(true)
return
}
if (!encryptionAvailable) {
if (!appConfig?.encryptedPassword && !encryptionAvailable) {
alert('加密不可用,请手动给内核授权')
await patchAppConfig({ encryptedPassword: [] })
return
}
}