feat(tun): validate route-exclude-address as CIDR (#6440)

* feat(tun): validate route-exclude-address as CIDR

* refactor(network): replace ipaddr.js helpers with cidr-block and validator

* docs: Changelog
This commit is contained in:
Slinetrac
2026-03-07 09:18:35 +00:00
committed by GitHub
parent c429632d80
commit 0bbf9407d8
24 changed files with 204 additions and 169 deletions
+4 -2
View File
@@ -56,11 +56,11 @@
"@tauri-apps/plugin-updater": "2.10.0",
"ahooks": "^3.9.6",
"axios": "^1.13.6",
"cidr-block": "^2.3.0",
"dayjs": "1.11.19",
"foxact": "^0.2.54",
"foxts": "^5.3.0",
"i18next": "^25.8.13",
"ipaddr.js": "^2.3.0",
"js-yaml": "^4.1.1",
"lodash-es": "^4.17.23",
"monaco-editor": "^0.55.1",
@@ -77,7 +77,8 @@
"rehype-raw": "^7.0.0",
"swr": "^2.4.1",
"tauri-plugin-mihomo-api": "github:clash-verge-rev/tauri-plugin-mihomo#main",
"types-pac": "^1.0.3"
"types-pac": "^1.0.3",
"validator": "^13.15.26"
},
"devDependencies": {
"@actions/github": "^9.0.0",
@@ -89,6 +90,7 @@
"@types/node": "^24.11.0",
"@types/react": "19.2.14",
"@types/react-dom": "19.2.3",
"@types/validator": "^13.15.10",
"@vitejs/plugin-legacy": "^7.2.1",
"@vitejs/plugin-react-swc": "^4.2.3",
"adm-zip": "^0.5.16",