Please read the instruction and answer the following questions before submitting your issue. Thank you.
Please answer all the questions with enough information. All issues not following this template will be closed immediately.
If you are not sure if your question is truely a bug in V2Ray, please discuss it here first.
1) What version of V2Ray are you using (If you deploy different version on server and client, please explicitly point out)?
Server: unstable-e425876afe56564e82a528661438aa95857632a7 (This issue doesn't appear on latest stable version 4.26.0, only on unstable version)
Client: 4.26.0
2) What's your scenario of using V2Ray? E.g., Watching YouTube videos in Chrome via Socks/VMess proxy.
/etc/gai.conf is the config file for getaddrinfo(3). I want V2Ray prefer IPv4 connections over IPv6 by setting precedence ::ffff:0:0/96 100 in /etc/gai.conf.
3) What did you see? (Please describe in detail, such as timeout, fake TLS certificate etc)
When visiting websites, V2Ray prefers IPv6 connections instead of IPv4 (the websites display server's IPv6 address).
4) What's your expectation?
V2Ray prefers IPv4 connections instead of IPv6 (the websites display server's IPv4 address).
5) Please attach your configuration file (Mask IP addresses before submit this issue).
Please read the instruction and answer the following questions before submitting your issue. Thank you. Please answer all the questions with enough information. All issues not following this template will be closed immediately. If you are not sure if your question is truely a bug in V2Ray, please discuss it here first.
1) What version of V2Ray are you using (If you deploy different version on server and client, please explicitly point out)?
Server:
unstable-e425876afe56564e82a528661438aa95857632a7
(This issue doesn't appear on latest stable version4.26.0
, only on unstable version)Client:
4.26.0
2) What's your scenario of using V2Ray? E.g., Watching YouTube videos in Chrome via Socks/VMess proxy.
/etc/gai.conf
is the config file forgetaddrinfo(3)
. I want V2Ray prefer IPv4 connections over IPv6 by settingprecedence ::ffff:0:0/96 100
in/etc/gai.conf
.3) What did you see? (Please describe in detail, such as timeout, fake TLS certificate etc)
When visiting websites, V2Ray prefers IPv6 connections instead of IPv4 (the websites display server's IPv6 address).
4) What's your expectation?
V2Ray prefers IPv4 connections instead of IPv6 (the websites display server's IPv4 address).
5) Please attach your configuration file (Mask IP addresses before submit this issue).
Server configuration:
Client configuration: Not relevant to this issue, but I'm willing to provide if it is needed.
6) Please attach error logs, especially the bottom lines if the file is large. Error log file is usually at
/var/log/v2ray/error.log
on Linux.Server error log:
Client error log:
7) Please attach access log. Access log is usually at '/var/log/v2ray/access.log' on Linux.
This is the access log when
loglevel
is set todebug
and then visithttp://google.com/search?q=1
:8) Other configurations (such as Nginx) and logs.
9) If V2Ray doesn't run, please attach output from
--test
.The command is usually
/usr/bin/v2ray/v2ray --test --config /etc/v2ray/config.json
, but may vary according to your scenario.10) If V2Ray service doesn't run, please attach journal log.
Usual command is
journalctl -u v2ray
.11) Additional info
I can still use
domainStrategy
to force V2Ray use IPv4 address, for example: