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

[Feature Request] 在V2Ray配置文件routing中加入指定geoip/site路径的功能 #2553

Closed
ghost opened this issue Jun 8, 2020 · 3 comments

Comments

@ghost
Copy link

ghost commented Jun 8, 2020

Please describe the new feature you want in detail.
V2Ray目前提供了一个V2RAY_LOCATION_ASSET环境变量可以供直接使用二进制的用户/GUI客户端使用,对于把V2Ray当做库使用的来说,没有办法设置geoip/site路径的路径而导致V2Ray会搜索程序的目录,很少有人会把geoip/site.dat放在/usr/local/bin或者xx.app/Contents/MacOS/里。希望V2Ray能加一个这样的设置,感谢。

Update:
使用qputenv或者setenv均无法让v2ray检测另外一个目录

@littlesum
Copy link

linux 可以做个软链接

@ghost
Copy link
Author

ghost commented Jun 10, 2020

linux 可以做个软链接

主要是要一个跨平台式的方案,像同类别的软件可以在json配置文件里指定位置就挺不错的。

@xiaokangwang
Copy link
Contributor

V2Ray have considered this already. Change NewFileReader in the https://github.com/v2fly/v2ray-core/blob/master/common/platform/filesystem/file.go .

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

No branches or pull requests

3 participants