mirror of
https://github.com/SagerNet/sing-tun.git
synced 2025-04-03 03:47:39 +03:00
Use new fswatcher to udpate android packages
This commit is contained in:
parent
c01b403a44
commit
7c4975c412
6 changed files with 39 additions and 35 deletions
|
@ -182,7 +182,7 @@ var controlPath string
|
|||
func init() {
|
||||
const defaultTunPath = "/dev/net/tun"
|
||||
const androidTunPath = "/dev/tun"
|
||||
if rw.FileExists(androidTunPath) {
|
||||
if rw.IsFile(androidTunPath) {
|
||||
controlPath = androidTunPath
|
||||
} else {
|
||||
controlPath = defaultTunPath
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue