feat:traffic setting 交互调整

This commit is contained in:
wangwenrui
2020-05-06 13:59:00 +08:00
parent ec91b6fc95
commit 51b3401132
4 changed files with 91 additions and 36 deletions

View File

@@ -6,7 +6,6 @@ export function host(rule, value, callback) {
callback();
}
const hostReg = /^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])(\:\d{0,5})?$/
console.log(value)
setTimeout(() => {
if (hostReg.test(value)) {
callback()