In linux i use v2ray package and call it with passing a config file, but i get an error:
╰ v2ray --config=/etc/v2ray/config.json
V2Ray 4.18.0 (Po) 20190228
A unified platform for anti-censorship.
main: failed to read config file: /etc/v2ray/config.json > v2ray.com/core/main/json: failed to execute v2ctl to convert config file. > v2ray.com/core/common/platform/ctlcmd: failed to execute v2ctl: v2ray.com/core/infra/conf/command: failed to parse json config > v2ray.com/core/infra/conf/serial: failed to parse json config > v2ray.com/core/infra/conf: invalid field rule > v2ray.com/core/infra/conf: failed to load GeoIP: private > v2ray.com/core/infra/conf: failed to open file: geoip.dat > open /usr/bin/geoip.dat: no such file or directory
> exit status 255
And this is my config.json file:
https://gist.github.com/LinArcX/1eb46bad3a9360a5838181d4f29dee13
https://github.com/v2ray/geoip/releases/download/20190509.1/geoip.dat
move to /usr/bin/geoip.dat
@kslr ok, thank you. it fixes. but now when i start it again it is the output of it:
╰ v2ray --config=/etc/v2ray/config.json
V2Ray 4.18.0 (Po) 20190228
A unified platform for anti-censorship.
This is the error log
too many colons in address
https://myguesty.herokuapp.com/: -> https://myguesty.herokuapp.com
Still same errors.
Please follow the template to submit the issue
cd to geoip.dat dir
ln -s geoip.dat geoip
will fix.
I think it is a bug.
Looks like the v2ray from arch repo already includes v2ray-geoip as deps but I still got this error.
Fixed by
V2RAY_LOCATION_ASSET=/etc/v2ray v2ray
Most helpful comment
Fixed by