summaryrefslogtreecommitdiff
path: root/net/spoofdpi/files/spoofdpi.toml.sample
diff options
context:
space:
mode:
Diffstat (limited to 'net/spoofdpi/files/spoofdpi.toml.sample')
-rw-r--r--net/spoofdpi/files/spoofdpi.toml.sample38
1 files changed, 32 insertions, 6 deletions
diff --git a/net/spoofdpi/files/spoofdpi.toml.sample b/net/spoofdpi/files/spoofdpi.toml.sample
index 3c1af2a7e542..36ce94dbded7 100644
--- a/net/spoofdpi/files/spoofdpi.toml.sample
+++ b/net/spoofdpi/files/spoofdpi.toml.sample
@@ -1,11 +1,37 @@
-dns-addr = "1.1.1.1"
-dns-port = "53"
+[general]
+
+# Available values are debug, trace, info, warn, error, and disabled. (default: "info")
+log-level = "info"
+
+# Don't print banner
+silent = true
+
+# This option is currently only supported on macOS.
+system-proxy = false
+
+[server]
# If you want to run SpoofDPI remotely (e.g., on a physically separated machine), then you should set this value
# to 0.0.0.0. Otherwise, it is recommended to leave this option as default.
-listen-addr = "127.0.0.1"
+listen-addr = "127.0.0.1:8080"
+
+[dns]
+
+# available options: udp/https/system (default: "udp")
+mode = "https"
+
+# DNS address and port number
+# this is used when dns-mode is set to udp.
+addr = "8.8.8.8:53"
+
+# This is used when dns-mode is set to https.
+https-url = "https://dns.google/dns-query"
+
+# Filters DNS queries by record type (A for IPv4, AAAA for IPv6).
+# Available values are "ipv4", "ipv6", and "all".
+# If your Internet Service Provider (ISP) doesn't support IPv6, it is recommended to set this option to "ipv4" for stability.
+qtype = "all"
-# Port to listen on.
-listen-port = "8080"
+# If true, DNS records will be cached to improve performance and reduce latency.
+cache = false
-doh-endpoint = "https://dns.google/dns-query"