From 0377a1171945f9ba3f7afac35950bc51f88d7ef1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Sat, 20 Aug 2022 09:35:46 +0800 Subject: [PATCH] Fix route on android --- constant/os.go | 2 +- go.mod | 2 +- go.sum | 4 ++-- test/go.mod | 2 +- test/go.sum | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/constant/os.go b/constant/os.go index 792dda55..63c6c41c 100644 --- a/constant/os.go +++ b/constant/os.go @@ -20,7 +20,7 @@ const IsIos = goos.IsIos == 1 const IsJs = goos.IsJs == 1 -const IsLinux = goos.IsLinux == 1 +const IsLinux = goos.IsLinux == 1 || goos.IsAndroid == 1 const IsNacl = goos.IsNacl == 1 diff --git a/go.mod b/go.mod index 174b4da2..0effb982 100644 --- a/go.mod +++ b/go.mod @@ -19,7 +19,7 @@ require ( github.com/sagernet/sing v0.0.0-20220819160035-717bc38fd35c github.com/sagernet/sing-dns v0.0.0-20220819010310-839eab1578c9 github.com/sagernet/sing-shadowsocks v0.0.0-20220819002358-7461bb09a8f6 - github.com/sagernet/sing-tun v0.0.0-20220819190418-529224be2d3b + github.com/sagernet/sing-tun v0.0.0-20220820022232-9e535150dbff github.com/sagernet/sing-vmess v0.0.0-20220811135656-4f3f07acf9c4 github.com/sagernet/smux v0.0.0-20220812084127-e2d085ee3939 github.com/spf13/cobra v1.5.0 diff --git a/go.sum b/go.sum index 51993799..43f1d158 100644 --- a/go.sum +++ b/go.sum @@ -102,8 +102,8 @@ github.com/sagernet/sing-dns v0.0.0-20220819010310-839eab1578c9 h1:XgXSOJv8e7+98 github.com/sagernet/sing-dns v0.0.0-20220819010310-839eab1578c9/go.mod h1:MAHy2IKZAA101t3Gr2x0ldwn6XuAs2cjGzSzHy5RhWk= github.com/sagernet/sing-shadowsocks v0.0.0-20220819002358-7461bb09a8f6 h1:JJfDeYYhWunvtxsU/mOVNTmFQmnzGx9dY034qG6G3g4= github.com/sagernet/sing-shadowsocks v0.0.0-20220819002358-7461bb09a8f6/go.mod h1:EX3RbZvrwAkPI2nuGa78T2iQXmrkT+/VQtskjou42xM= -github.com/sagernet/sing-tun v0.0.0-20220819190418-529224be2d3b h1:+Q8H5HNhRbHXVwk7yUFvZ1ES26+pbCHtMgZdt64CGEg= -github.com/sagernet/sing-tun v0.0.0-20220819190418-529224be2d3b/go.mod h1:1eLHs6/x5LJyDb96zzTSRfqFXmBVi0uptLzfTbtyIDo= +github.com/sagernet/sing-tun v0.0.0-20220820022232-9e535150dbff h1:FBgncoljoryASAdq54qBUsyTsq04323qWa+EPPfgtAQ= +github.com/sagernet/sing-tun v0.0.0-20220820022232-9e535150dbff/go.mod h1:1eLHs6/x5LJyDb96zzTSRfqFXmBVi0uptLzfTbtyIDo= github.com/sagernet/sing-vmess v0.0.0-20220811135656-4f3f07acf9c4 h1:2hLETh97+S4WnfMR27XyC7QVU1SH7FTNoCznP229YJU= github.com/sagernet/sing-vmess v0.0.0-20220811135656-4f3f07acf9c4/go.mod h1:82O6gzbxLha/W/jxSVQbsqf2lVdRTjMIgyLug0lpJps= github.com/sagernet/smux v0.0.0-20220812084127-e2d085ee3939 h1:pB1Dh1NbwVrLhQhotr4O4Hs3yhiBzmg3AvnUyYjL4x4= diff --git a/test/go.mod b/test/go.mod index cccc6508..182c63d8 100644 --- a/test/go.mod +++ b/test/go.mod @@ -56,7 +56,7 @@ require ( github.com/sagernet/netlink v0.0.0-20220816152750-7a75378bd31a // indirect github.com/sagernet/quic-go v0.0.0-20220818150011-de611ab3e2bb // indirect github.com/sagernet/sing-dns v0.0.0-20220819010310-839eab1578c9 // indirect - github.com/sagernet/sing-tun v0.0.0-20220819190418-529224be2d3b // indirect + github.com/sagernet/sing-tun v0.0.0-20220820022232-9e535150dbff // indirect github.com/sagernet/sing-vmess v0.0.0-20220811135656-4f3f07acf9c4 // indirect github.com/sagernet/smux v0.0.0-20220812084127-e2d085ee3939 // indirect github.com/sirupsen/logrus v1.8.1 // indirect diff --git a/test/go.sum b/test/go.sum index aec45337..acf871e5 100644 --- a/test/go.sum +++ b/test/go.sum @@ -124,8 +124,8 @@ github.com/sagernet/sing-dns v0.0.0-20220819010310-839eab1578c9 h1:XgXSOJv8e7+98 github.com/sagernet/sing-dns v0.0.0-20220819010310-839eab1578c9/go.mod h1:MAHy2IKZAA101t3Gr2x0ldwn6XuAs2cjGzSzHy5RhWk= github.com/sagernet/sing-shadowsocks v0.0.0-20220819002358-7461bb09a8f6 h1:JJfDeYYhWunvtxsU/mOVNTmFQmnzGx9dY034qG6G3g4= github.com/sagernet/sing-shadowsocks v0.0.0-20220819002358-7461bb09a8f6/go.mod h1:EX3RbZvrwAkPI2nuGa78T2iQXmrkT+/VQtskjou42xM= -github.com/sagernet/sing-tun v0.0.0-20220819190418-529224be2d3b h1:+Q8H5HNhRbHXVwk7yUFvZ1ES26+pbCHtMgZdt64CGEg= -github.com/sagernet/sing-tun v0.0.0-20220819190418-529224be2d3b/go.mod h1:1eLHs6/x5LJyDb96zzTSRfqFXmBVi0uptLzfTbtyIDo= +github.com/sagernet/sing-tun v0.0.0-20220820022232-9e535150dbff h1:FBgncoljoryASAdq54qBUsyTsq04323qWa+EPPfgtAQ= +github.com/sagernet/sing-tun v0.0.0-20220820022232-9e535150dbff/go.mod h1:1eLHs6/x5LJyDb96zzTSRfqFXmBVi0uptLzfTbtyIDo= github.com/sagernet/sing-vmess v0.0.0-20220811135656-4f3f07acf9c4 h1:2hLETh97+S4WnfMR27XyC7QVU1SH7FTNoCznP229YJU= github.com/sagernet/sing-vmess v0.0.0-20220811135656-4f3f07acf9c4/go.mod h1:82O6gzbxLha/W/jxSVQbsqf2lVdRTjMIgyLug0lpJps= github.com/sagernet/smux v0.0.0-20220812084127-e2d085ee3939 h1:pB1Dh1NbwVrLhQhotr4O4Hs3yhiBzmg3AvnUyYjL4x4=