diff --git a/common/settings/proxy_windows.go b/common/settings/proxy_windows.go index 226c999d..4a3b070e 100644 --- a/common/settings/proxy_windows.go +++ b/common/settings/proxy_windows.go @@ -7,7 +7,7 @@ import ( ) func SetSystemProxy(router adapter.Router, port uint16, isMixed bool) (func() error, error) { - err := wininet.SetSystemProxy(F.ToString("http://127.0.0.1:", port), "") + err := wininet.SetSystemProxy(F.ToString("http://127.0.0.1:", port), "") if err != nil { return nil, err } diff --git a/go.mod b/go.mod index 447a2211..7e0d5ecc 100644 --- a/go.mod +++ b/go.mod @@ -23,7 +23,7 @@ require ( github.com/refraction-networking/utls v1.2.0 github.com/sagernet/cloudflare-tls v0.0.0-20221031050923-d70792f4c3a0 github.com/sagernet/quic-go v0.0.0-20221206044826-d15273f58d82 - github.com/sagernet/sing v0.1.1 + github.com/sagernet/sing v0.1.2-0.20221226041200-d8c779c030ba github.com/sagernet/sing-dns v0.1.1-0.20221219051000-4eff25693772 github.com/sagernet/sing-shadowsocks v0.1.0 github.com/sagernet/sing-tun v0.1.1-0.20221128044455-b22d9eb41b74 diff --git a/go.sum b/go.sum index 5d16425b..b9296b95 100644 --- a/go.sum +++ b/go.sum @@ -150,8 +150,8 @@ github.com/sagernet/quic-go v0.0.0-20221206044826-d15273f58d82 h1:Mr4UIyvmyhybR0 github.com/sagernet/quic-go v0.0.0-20221206044826-d15273f58d82/go.mod h1:MIccjRKnPTjWwAOpl+AUGWOkzyTd9tERytudxu+1ra4= github.com/sagernet/sing v0.0.0-20220812082120-05f9836bff8f/go.mod h1:QVsS5L/ZA2Q5UhQwLrn0Trw+msNd/NPGEhBKR/ioWiY= github.com/sagernet/sing v0.0.0-20220817130738-ce854cda8522/go.mod h1:QVsS5L/ZA2Q5UhQwLrn0Trw+msNd/NPGEhBKR/ioWiY= -github.com/sagernet/sing v0.1.1 h1:wtCGreL9UNtoLcDvSLoZQWf1dtqmLWogbcwRAD9nz4E= -github.com/sagernet/sing v0.1.1/go.mod h1:zvgDYKI+vCAW9RyfyrKTgleI+DOa8lzHMPC7VZo3OL4= +github.com/sagernet/sing v0.1.2-0.20221226041200-d8c779c030ba h1:5HEoylnFXFO7CuJGzJaK7PzOdVT5DKmqZash6H5a1b0= +github.com/sagernet/sing v0.1.2-0.20221226041200-d8c779c030ba/go.mod h1:bvmen56QnVbMrWy+nr5nsbz7U5MUPuY0L0S/XfhCsTs= github.com/sagernet/sing-dns v0.1.1-0.20221219051000-4eff25693772 h1:S68UdEI7911P868k6pualoxqK8lwQjdx6Xt00ybsVLA= github.com/sagernet/sing-dns v0.1.1-0.20221219051000-4eff25693772/go.mod h1:IXw6t1F25YvzmgCgV2kKySf4XCEKkUJnmLvKCd7jFEc= github.com/sagernet/sing-shadowsocks v0.1.0 h1:cDmmOkA11fzVdhyCZQEeI3ozQz+59rj8+rqPb91xux4= diff --git a/option/types.go b/option/types.go index 92c763e5..6c5bd8bc 100644 --- a/option/types.go +++ b/option/types.go @@ -124,7 +124,7 @@ func (s *DomainStrategy) UnmarshalJSON(bytes []byte) error { return err } switch value { - case "", "AsIS": + case "", "as_is": *s = DomainStrategy(dns.DomainStrategyAsIS) case "prefer_ipv4": *s = DomainStrategy(dns.DomainStrategyPreferIPv4)