fix: judge lab targets by resolved private IPs, not domain suffixes.

This commit is contained in:
叫我小杨同学 committed 2026-10-23 18:04:32 +08:00
1 parent b57944042b
commit 5fa04372cc
4 files changed
+72 -62

No files matched your search

+2 -2
View File
@@ -175,7 +175,7 @@ window.__ModuleLoader__.load({ id: "dsh-purge", factory: (require) => {
"purge.title": "补丁",
"override.title": "提示词",
"own.title": "本地靶场",
"own.hint": "开源版攻击任务只放行本机/内网本地靶场(localhost、私网、.lab/.lan/.htb 等)。不能登记公网服务器,公网 IP 和域名一律拦截。",
"own.hint": "开源版攻击任务只放行本机/内网 IP。域名会先解析,解析到的每一个地址都必须是私网或回环;hosts 把 .lab 指到公网 IP 也会拦。解析失败或混有公网地址一律拦截。",
"own.save": "保存名单",
"saved.own": "已保存自己的服务器",
"saved.own.dropped": "已保存。有 {n} 行不是单个 IP 或主机名,已丢掉",
@@ -519,7 +519,7 @@ window.__ModuleLoader__.load({ id: "dsh-purge", factory: (require) => {
"purge.title": "Patches",
"override.title": "Prompt",
"own.title": "Local lab only",
"own.hint": "The open-source build only allows local lab targets (localhost, private nets, .lab/.lan/.htb). You cannot register a public host. Public IPs and domains are blocked.",
"own.hint": "The open-source build only allows localhost/private IPs. Domains are resolved first; every A/AAAA must be loopback or RFC1918. A hosts entry that points .lab at a public IP is blocked. Failed or mixed public answers are denied.",
"own.save": "Save list",
"saved.own": "Own servers saved",
"saved.own.dropped": "Saved. {n} lines were not a single IP or hostname and were dropped",