Skip to content

Commit

Permalink
fix: sync example config with codes
Browse files Browse the repository at this point in the history
  • Loading branch information
wweir committed Sep 23, 2024
1 parent 19b6194 commit eadb2f0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
5 changes: 3 additions & 2 deletions .github/sower.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "<ipv6>"
# 监听的网络接口
serve_iface = "lo"
# serve_iface = "lo"
# 必填,优先使用 DHCP 中的 DNS 服务器,如果没有则使用该地址
fallback = "223.5.5.5"
}
Expand Down
3 changes: 2 additions & 1 deletion .github/sower.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = <ipv6>
# 监听的网络接口
# serve_iface = "lo"

Expand Down
6 changes: 3 additions & 3 deletions .github/sower.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: <ipv6>
# 监听的网络接口
serve_iface: "lo"
# serve_iface: "lo"
# 必填,优先使用 DHCP 中的 DNS 服务器,如果没有则使用该地址
fallback: "223.5.5.5"

Expand Down
2 changes: 1 addition & 1 deletion cmd/sower/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit eadb2f0

Please sign in to comment.