diff --git a/.github/sower.hcl b/.github/sower.hcl index f768747..4757ecb 100644 --- a/.github/sower.hcl +++ b/.github/sower.hcl @@ -10,9 +10,10 @@ remote { dns { disable = false # 监听该 IP 的 UDP(53)、TCP(80、443) 端口,DNS 会将请求导向这个地址 - serve_ips = ["127.0.0.1"] + serve = "127.0.0.1" + # serve6 = "" # 监听的网络接口 - serve_iface = "lo" + # serve_iface = "lo" # 必填,优先使用 DHCP 中的 DNS 服务器,如果没有则使用该地址 fallback = "223.5.5.5" } diff --git a/.github/sower.toml b/.github/sower.toml index 0387ef3..7c4da8a 100644 --- a/.github/sower.toml +++ b/.github/sower.toml @@ -8,7 +8,8 @@ password = "I_am_Passw0rd" [dns] disable = false # 监听该 IP 的 UDP(53)、TCP(80、443) 端口,DNS 会将请求导向这个地址 -serve_ips = ["127.0.0.1"] +serve = "127.0.0.1" +# serve6 = # 监听的网络接口 # serve_iface = "lo" diff --git a/.github/sower.yaml b/.github/sower.yaml index 406a589..f4d0fbb 100644 --- a/.github/sower.yaml +++ b/.github/sower.yaml @@ -8,10 +8,10 @@ remote: # 远程、上游连接方式 dns: disable: false # 监听该 IP 的 UDP(53)、TCP(80、443) 端口,DNS 会将请求导向这个地址 - serve_ips: - - "127.0.0.1" + serve: "127.0.0.1" + # serve6: # 监听的网络接口 - serve_iface: "lo" + # serve_iface: "lo" # 必填,优先使用 DHCP 中的 DNS 服务器,如果没有则使用该地址 fallback: "223.5.5.5" diff --git a/cmd/sower/main.go b/cmd/sower/main.go index 8e08d49..651a707 100644 --- a/cmd/sower/main.go +++ b/cmd/sower/main.go @@ -37,7 +37,7 @@ var ( DNS struct { Disable bool `default:"false" usage:"disable DNS proxy"` - Serve string `usage:"dns server ip"` + Serve string `default:"127.0.0.1" usage:"dns server ip"` Serve6 string `usage:"dns server ipv6, eg: ::1"` ServeIface string `usage:"use the IP in the net interface, if serve ip not setted. eg: eth0"` Fallback string `default:"223.5.5.5" required:"true" usage:"fallback dns server"`