From 269d71073c374c8c10ab7aad2b4ca0823444a588 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Fri, 23 Oct 2026 06:27:34 +0800 Subject: [PATCH] Fix FakeIP IPv6 range examples --- docs/configuration/dns/fakeip.md | 2 +- docs/configuration/dns/fakeip.zh.md | 2 +- docs/configuration/dns/server/fakeip.md | 4 ++-- docs/configuration/dns/server/fakeip.zh.md | 2 +- docs/manual/proxy/client.md | 2 +- docs/migration.md | 4 ++-- docs/migration.zh.md | 4 ++-- docs/schema.json | 2 +- option/dns.go | 2 +- 9 files changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/configuration/dns/fakeip.md b/docs/configuration/dns/fakeip.md index a0524dc8..bc053cc2 100644 --- a/docs/configuration/dns/fakeip.md +++ b/docs/configuration/dns/fakeip.md @@ -12,7 +12,7 @@ icon: material/note-remove { "enabled": true, "inet4_range": "198.18.0.0/15", - "inet6_range": "fc00::/18" + "inet6_range": "2001:2::/48" } ``` diff --git a/docs/configuration/dns/fakeip.zh.md b/docs/configuration/dns/fakeip.zh.md index 1e5eca60..c6c7ebcc 100644 --- a/docs/configuration/dns/fakeip.zh.md +++ b/docs/configuration/dns/fakeip.zh.md @@ -12,7 +12,7 @@ icon: material/note-remove { "enabled": true, "inet4_range": "198.18.0.0/15", - "inet6_range": "fc00::/18" + "inet6_range": "2001:2::/48" } ``` diff --git a/docs/configuration/dns/server/fakeip.md b/docs/configuration/dns/server/fakeip.md index 6d2bba43..f797a5f5 100644 --- a/docs/configuration/dns/server/fakeip.md +++ b/docs/configuration/dns/server/fakeip.md @@ -17,7 +17,7 @@ icon: material/new-box "tag": "", "inet4_range": "198.18.0.0/15", - "inet6_range": "fc00::/18" + "inet6_range": "2001:2::/48" } ] } @@ -30,6 +30,6 @@ icon: material/new-box IPv4 address range for FakeIP. -#### inet6_address +#### inet6_range IPv6 address range for FakeIP. diff --git a/docs/configuration/dns/server/fakeip.zh.md b/docs/configuration/dns/server/fakeip.zh.md index 06dbdff0..f6a4aeac 100644 --- a/docs/configuration/dns/server/fakeip.zh.md +++ b/docs/configuration/dns/server/fakeip.zh.md @@ -17,7 +17,7 @@ icon: material/new-box "tag": "", "inet4_range": "198.18.0.0/15", - "inet6_range": "fc00::/18" + "inet6_range": "2001:2::/48" } ] } diff --git a/docs/manual/proxy/client.md b/docs/manual/proxy/client.md index e8c80523..b8c26cf9 100644 --- a/docs/manual/proxy/client.md +++ b/docs/manual/proxy/client.md @@ -215,7 +215,7 @@ flowchart TB "tag": "remote", "type": "fakeip", "inet4_range": "198.18.0.0/15", - "inet6_range": "fc00::/18" + "inet6_range": "2001:2::/48" } ], "rules": [ diff --git a/docs/migration.md b/docs/migration.md index 7e718943..83e81656 100644 --- a/docs/migration.md +++ b/docs/migration.md @@ -545,7 +545,7 @@ DNS servers are refactored for better performance and scalability. "fakeip": { "enabled": true, "inet4_range": "198.18.0.0/15", - "inet6_range": "fc00::/18" + "inet6_range": "2001:2::/48" } } } @@ -565,7 +565,7 @@ DNS servers are refactored for better performance and scalability. "type": "fakeip", "tag": "fakeip", "inet4_range": "198.18.0.0/15", - "inet6_range": "fc00::/18" + "inet6_range": "2001:2::/48" } ], "rules": [ diff --git a/docs/migration.zh.md b/docs/migration.zh.md index 198f600b..508c80a7 100644 --- a/docs/migration.zh.md +++ b/docs/migration.zh.md @@ -540,7 +540,7 @@ DNS 服务器已经重构。 "fakeip": { "enabled": true, "inet4_range": "198.18.0.0/15", - "inet6_range": "fc00::/18" + "inet6_range": "2001:2::/48" } } } @@ -560,7 +560,7 @@ DNS 服务器已经重构。 "type": "fakeip", "tag": "fakeip", "inet4_range": "198.18.0.0/15", - "inet6_range": "fc00::/18" + "inet6_range": "2001:2::/48" } ], "rules": [ diff --git a/docs/schema.json b/docs/schema.json index 96a58c55..e028e428 100644 --- a/docs/schema.json +++ b/docs/schema.json @@ -2031,7 +2031,7 @@ "inet6_range": { "type": "string", "examples": [ - "fc00::/18" + "2001:2::/48" ] } }, diff --git a/option/dns.go b/option/dns.go index 1180a622..299c734c 100644 --- a/option/dns.go +++ b/option/dns.go @@ -210,7 +210,7 @@ type RemoteHTTPSDNSServerOptions struct { type FakeIPDNSServerOptions struct { Inet4Range *badoption.Prefix `json:"inet4_range,omitempty" examples:"198.18.0.0/15"` - Inet6Range *badoption.Prefix `json:"inet6_range,omitempty" examples:"fc00::/18"` + Inet6Range *badoption.Prefix `json:"inet6_range,omitempty" examples:"2001:2::/48"` } type DHCPDNSServerOptions struct {