iwinoid/fakeip-compat ↗★ 0

fakeip-compat

Fake-IP-aware web.fetch provider for TUN (Mihomo/Clash) DNS environments plus pinned LAN CIDR access 适合已在 Mihomo/Clash 网络中运行的环境,需配置 LAN 与 Fake-IP 网段及可用 DoH 路径。

패키지
fakeip-compat
호환성
미검증
Harness peer 범위
^0.1.2-rc.1
Cordis peer 범위
^4.0.1
버전
2.2.0
라이선스
MIT
최근 업데이트
2026. 9. 13.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:iwinoid/fakeip-compat

Usage

Configuration

KeyDefaultNotes
lanCidr192.168.0.0/16LAN allowlist. System-resolved results inside it transport pinned.
fakeV4Cidr / fakeV6Cidr198.18.0.0/16 / fdfe:dcba:9876::/48Local Fake-IP pools. Match them to the Clash Verge config.
dohEndpoints1.1.1.1/dns-query, 8.8.8.8/resolveTrusted DoH (JSON API) over direct IP-literal endpoints. First fully successful endpoint wins.
dohTimeoutMs8000Budget for one DoH lookup.
lanInsecurefalseSkip TLS check on the LAN path only. Turn it on for self-signed devices.
maxResponseBytes / maxBodyChars / timeoutMs / maxRedirects / userAgent5000000 / 100000 / 30000 / 5 / official UASame meaning as the official provider.

Settings UI

The plugin registers a fakeip-compat settings section and a browser card of the same name (lib/client.js, hand-written, no build step). After a DSH restart the card shows under Settings → Plugins → Plugin configuration. Every field in the table above edits there. Saves apply at once with no restart. Invalid input (such as a bad CIDR) blocks the save. A bad runtime edit keeps the last valid value and never breaks an in-flight fetch. Environments without a settings service (such as headless) fall back to the merged config.

Configuration

KeyDefaultNotes
lanCidr192.168.0.0/16LAN allowlist. System-resolved results inside it transport pinned.
fakeV4Cidr / fakeV6Cidr198.18.0.0/16 / fdfe:dcba:9876::/48Local Fake-IP pools. Match them to the Clash Verge config.
dohEndpoints1.1.1.1/dns-query, 8.8.8.8/resolveTrusted DoH (JSON API) over direct IP-literal endpoints. First fully successful endpoint wins.
dohTimeoutMs8000Budget for one DoH lookup.
lanInsecurefalseSkip TLS check on the LAN path only. Turn it on for self-signed devices.
maxResponseBytes / maxBodyChars / timeoutMs / maxRedirects / userAgent5000000 / 100000 / 30000 / 5 / official UASame meaning as the official provider.