|
|
本帖最后由 jibwf 于 2026-4-9 14:00 编辑
this.checkIPv6 = function(a, b) {
var c;
a = a.replace(/:/g, ":");
c = this.checkIPv6Format(a);
if (c != ENONE)
return c;
c = this.ipv6Init(a);
if (65152 <= c[0] && 65215 >= c[0])
return void 0 != b && !0 == b.allow_localLink && 65152 == c[0] ? ENONE : EIPV6LINKLOCAL;
if (64768 <= c[0] && 65023 >= c[0])
return void 0 != b && !0 == b.allow_localSole ? ENONE : EIPV6INVIP;
if (0 == c[0] && 0 == c[1] && 0 == c[2] && 0 == c[3] && 0 == c[4] && 0 == c[5] && 0 == c[6]) {
if (1 == c[7])
return EIPV6LOOP;
if (0 == c[7])
return EIPV6INVIP
}
return 65280 <= c[0] && 65295 >= c[0] ? EIPV6INVGROUPIP : 16383 < c[0] || 8192 > c[0] ? EIPV6INVIP : 8194 == c[0] ? EIPV66TO4ADDR : ENONE
}
是这里吗?修改成下面的代码,然后Ctrl + S(Windows)或 Cmd + S(Mac)保存并生效。
this.checkIPv6 = function(a, b) {
var c;
a = a.replace(/:/g, ":");
c = this.checkIPv6Format(a);
if (c != ENONE)
return c;
c = this.ipv6Init(a);
if (65152 <= c[0] && 65215 >= c[0])
return ENONE;
if (64768 <= c[0] && 65023 >= c[0])
return ENONE;
if (0 == c[0] && 0 == c[1] && 0 == c[2] && 0 == c[3] && 0 == c[4] && 0 == c[5] && 0 == c[6]) {
if (1 == c[7])
return EIPV6LOOP;
if (0 == c[7])
return EIPV6INVIP
}
return 65280 <= c[0] && 65295 >= c[0] ? EIPV6INVGROUPIP : 16383 < c[0] || 8192 > c[0] ? EIPV6INVIP : 8194 == c[0] ? EIPV66TO4ADDR : ENONE
}
修改后改首选DNS还是报错。 首选DNS服务器无效。能指导下吗?
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
×
|