Skip to content
This repository has been archived by the owner on Apr 3, 2021. It is now read-only.

Commit

Permalink
improve compatibility of default arguments
Browse files Browse the repository at this point in the history
The 240.0.0.0/24 subnet does not seem to work well on Windows
  • Loading branch information
eycorsican committed May 22, 2019
1 parent 8b3d04b commit 9a23373
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmd/tun2socks/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ type CmdArgs struct {
DnsFallback *bool
LogLevel *string
EnableFakeDns *bool
FakeDnsMinIP *string
FakeDnsMaxIP *string
FakeDnsMinIP *string
FakeDnsMaxIP *string
}

type cmdFlag uint
Expand Down Expand Up @@ -108,10 +108,10 @@ const (
func main() {
args.Version = flag.Bool("version", false, "Print version")
args.TunName = flag.String("tunName", "tun1", "TUN interface name")
args.TunAddr = flag.String("tunAddr", "240.0.0.2", "TUN interface address")
args.TunGw = flag.String("tunGw", "240.0.0.1", "TUN interface gateway")
args.TunAddr = flag.String("tunAddr", "10.255.0.2", "TUN interface address")
args.TunGw = flag.String("tunGw", "10.255.0.1", "TUN interface gateway")
args.TunMask = flag.String("tunMask", "255.255.255.0", "TUN interface netmask, as for IPv6, it's the prefixlen")
args.TunDns = flag.String("tunDns", "114.114.114.114,223.5.5.5", "DNS resolvers for TUN interface (only need on Windows)")
args.TunDns = flag.String("tunDns", "8.8.8.8,8.8.4.4", "DNS resolvers for TUN interface (only need on Windows)")
args.ProxyType = flag.String("proxyType", "socks", "Proxy handler type, e.g. socks, shadowsocks, v2ray")
args.DelayICMP = flag.Int("delayICMP", 10, "Delay ICMP packets for a short period of time, in milliseconds")
args.LogLevel = flag.String("loglevel", "info", "Logging level. (debug, info, warn, error, none)")
Expand Down

0 comments on commit 9a23373

Please sign in to comment.