go-tun2socks-build icon indicating copy to clipboard operation
go-tun2socks-build copied to clipboard

startV2Ray最后一个参数不生效?

Open ukhack opened this issue 2 years ago • 2 comments

我指定了最后一个参数为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 这个路径从何来的

ukhack avatar Dec 19 '22 14:12 ukhack

我又研究了一遍。我传入的路径塞到了v2Asset这个变量里面, 但是这个变量只有set没有地方get出来 os.Setenv(v2Asset, assetPath)

ukhack avatar Dec 20 '22 03:12 ukhack

是的 我也遇到了这个问题 看来是不打算维护了

Hareis avatar Oct 24 '23 13:10 Hareis