go-tun2socks-build
go-tun2socks-build copied to clipboard
startV2Ray最后一个参数不生效?
我指定了最后一个参数为filesDir.absolutePath。按理应该是 /data/user/0/com.example.xx/files 这个路径啊
我在安卓的raw目录下面有geoip.dat文件,并通过下面的参数把路径传递给Tun2socks了
resources.openRawResource(R.raw.userconfig).use { Tun2socks.startV2Ray(packageFlow,V2rayService(),null,null,it.readBytes(),filesDir.absolutePath) }
为什么会报
I/GoLog: start V instance failed: infra/conf/serial: failed to parse json config > infra/conf: invalid field rule > infra/conf: failed to load GeoIP: cn > infra/conf: failed to load file: geoip.dat > infra/conf: failed to open file: geoip.dat > open /system/bin/geoip.dat: no such file or directory
这样的错误,/system/bin 这个路径从何来的
我又研究了一遍。我传入的路径塞到了v2Asset这个变量里面,
但是这个变量只有set没有地方get出来
os.Setenv(v2Asset, assetPath)
是的 我也遇到了这个问题 看来是不打算维护了