Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

startV2Ray最后一个参数不生效? #26

Open
ukhack opened this issue Dec 19, 2022 · 2 comments
Open

startV2Ray最后一个参数不生效? #26

ukhack opened this issue Dec 19, 2022 · 2 comments

Comments

@ukhack
Copy link

ukhack commented Dec 19, 2022

我指定了最后一个参数为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
Copy link
Author

ukhack commented Dec 20, 2022

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

@Hareis
Copy link

Hareis commented Oct 24, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants