2dust / v2rayNG

A V2Ray client for Android, support Xray core and v2fly core
https://1.2345345.xyz
GNU General Public License v3.0
35.94k stars 5.49k forks source link

使用自定义配置时,DNS服务出现问题。但同样配置在windows上可以正常运行。 #2935

Closed JotmKKmkLTzE closed 7 months ago

JotmKKmkLTzE commented 7 months ago

在提出问题前请先自行排除服务器端问题,同时也请通过搜索确认是否有人提出过相同问题。

预期行为

使用自定义配置,能够正常上网

实际行为

使用自定义配置时,使用tg这种ip连接的app时,可以正常使用。 浏览器使用ip直接连接,也可以正常访问。 唯独使用域名时,无法正常访问。 但是同样的自定义配置,在windows机器上,直接 xray.exe -c config 可以正常运行,也可以正常访问域名。

复现方法

日志信息

通过`adb logcat -s com.v2ray.ang GoLog V2rayConfigUtilGoLog Main`获取日志。请自行删减日志中可能出现的敏感信息。 如果问题可重现,建议先执行`adb logcat -c`清空系统日志再执行上述命令,再操作重现问题。 ``` --------- beginning of main 03-16 00:35:18.106 19966 19966 I GoLog : loading core config 03-16 00:35:18.106 19966 22479 I GoLog : Preparing Domain: xxxx保护 03-16 00:35:18.106 19966 22479 I GoLog : Prepare Result: 03-16 00:35:18.106 19966 22479 I GoLog : Domain: xxx保护 03-16 00:35:18.106 19966 22479 I GoLog : Port: 443 03-16 00:35:18.106 19966 22479 I GoLog : IPs: [ xxx保护] 03-16 00:35:19.058 19966 19966 I GoLog : new core 03-16 00:35:19.344 19966 19966 I GoLog : start core 03-16 00:35:19.345 19966 22466 I GoLog : [Warning] core: Xray 1.8.8 started 03-16 00:35:19.364 19966 19966 D com.v2ray.ang: [/data/app/~~iGM77DOT24Hw8aOkja8mcQ==/com.v2ray.ang-6dDzedLVHn_2hSgU29qQkg==/lib/arm64/libtun2socks.so, --netif-ipaddr, 26.26.26.2, --netif-netmask, 255.255.255.252, --socks-server-addr, 127.0.0.1:10808, --tunmtu, 1500, --sock-path, sock_path, --enable-udprelay, --loglevel, notice] 03-16 00:35:19.365 19966 19966 D com.v2ray.ang: Process[pid=21202, hasExited=false] 03-16 00:35:19.365 19966 19966 D com.v2ray.ang: /data/user/0/com.v2ray.ang/files/sock_path 03-16 00:35:19.365 19966 21203 D com.v2ray.ang: libtun2socks.so check 03-16 00:35:19.416 19966 20004 D com.v2ray.ang: sendFd tries: 0 03-16 00:35:19.695 19966 22467 I GoLog : tcp:127.0.0.1:33994 accepted tcp:203.209.250.12:443 [socks -> direct] 03-16 00:35:27.519 19966 22467 I GoLog : tcp:127.0.0.1:57132 accepted tcp:183.47.121.209:80 [socks -> direct] 03-16 00:35:27.762 19966 22466 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:35:29.834 19966 22471 I GoLog : tcp:127.0.0.1:57144 accepted tcp:203.209.250.12:443 [socks -> direct] 03-16 00:35:35.542 19966 19993 I GoLog : Not Using Prepared: tcp,szminorshort.weixin.qq.com:80 03-16 00:35:40.024 19966 22466 I GoLog : tcp:127.0.0.1:39944 accepted tcp:203.209.250.12:443 [socks -> direct] 03-16 00:35:40.825 19966 22467 I GoLog : tcp:127.0.0.1:39954 accepted tcp:119.147.11.76:80 [socks -> direct] 03-16 00:35:43.823 19966 19987 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:35:43.823 19966 22466 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:35:43.823 19966 19993 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:35:50.176 19966 22479 I GoLog : tcp:127.0.0.1:59780 accepted tcp:110.76.8.204:443 [socks -> direct] 03-16 00:35:51.594 19966 22471 I GoLog : Not Using Prepared: tcp,szminorshort.weixin.qq.com:80 03-16 00:35:51.594 19966 22470 I GoLog : Not Using Prepared: tcp,szminorshort.weixin.qq.com:80 03-16 00:35:59.874 19966 22467 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:35:59.874 19966 22470 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:35:59.874 19966 19987 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:35:59.874 19966 19987 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:36:00.385 19966 19993 I GoLog : tcp:127.0.0.1:57894 accepted tcp:110.76.8.204:443 [socks -> direct] 03-16 00:36:07.680 19966 22471 I GoLog : Not Using Prepared: tcp,szminorshort.weixin.qq.com:80 03-16 00:36:07.680 19966 19993 I GoLog : Not Using Prepared: tcp,szminorshort.weixin.qq.com:80 03-16 00:36:10.509 19966 22467 I GoLog : tcp:127.0.0.1:50562 accepted tcp:110.76.8.204:443 [socks -> direct] 03-16 00:36:12.272 19966 22467 I GoLog : tcp:127.0.0.1:50568 accepted tcp:91.108.56.118:443 [socks >> proxy] 03-16 00:36:12.283 19966 22470 I GoLog : tcp:127.0.0.1:50570 accepted tcp:149.154.167.41:443 [socks >> proxy] 03-16 00:36:12.294 19966 22470 I GoLog : tcp:127.0.0.1:50584 accepted tcp:149.154.167.41:443 [socks >> proxy] 03-16 00:36:12.296 19966 22470 I GoLog : tcp:127.0.0.1:50588 accepted tcp:149.154.167.41:443 [socks >> proxy] 03-16 00:36:12.575 19966 22470 I GoLog : tcp:127.0.0.1:50590 accepted tcp:149.154.167.222:443 [socks >> proxy] 03-16 00:36:12.582 19966 19993 I GoLog : tcp:127.0.0.1:50604 accepted tcp:149.154.167.43:5222 [socks >> proxy] 03-16 00:36:13.527 19966 19993 I GoLog : tcp:127.0.0.1:50610 accepted tcp:49.4.38.72:443 [socks -> direct] 03-16 00:36:13.777 19966 22470 I GoLog : tcp:127.0.0.1:50618 accepted tcp:114.115.188.112:6447 [socks -> block] 03-16 00:36:14.538 19966 19993 I GoLog : tcp:127.0.0.1:51336 accepted tcp:114.115.188.66:6447 [socks -> block] 03-16 00:36:15.380 19966 22470 I GoLog : tcp:127.0.0.1:51342 accepted tcp:149.154.167.43:5222 [socks >> proxy] 03-16 00:36:15.380 19966 19993 I GoLog : tcp:127.0.0.1:51344 accepted tcp:149.154.167.43:5222 [socks >> proxy] 03-16 00:36:15.700 19966 22470 I GoLog : tcp:127.0.0.1:51358 accepted tcp:91.108.56.118:443 [socks >> proxy] 03-16 00:36:15.804 19966 19987 I GoLog : tcp:127.0.0.1:51366 accepted tcp:114.115.188.159:6447 [socks -> block] 03-16 00:36:15.813 19966 22470 I GoLog : tcp:127.0.0.1:51376 accepted tcp:91.108.56.118:443 [socks >> proxy] 03-16 00:36:16.095 19966 22479 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:36:16.095 19966 22468 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:36:16.095 19966 22468 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:36:16.095 19966 22468 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:36:16.095 19966 22468 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:36:16.095 19966 22468 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:36:16.323 19966 22467 I GoLog : tcp:127.0.0.1:51382 accepted tcp:91.108.56.118:443 [socks >> proxy] 03-16 00:36:17.637 19966 22468 I GoLog : tcp:127.0.0.1:51398 accepted tcp:49.4.34.27:6447 [socks -> block] 03-16 00:36:19.409 19966 22471 I GoLog : tcp:127.0.0.1:51412 accepted tcp:114.115.188.152:6447 [socks -> block] 03-16 00:36:20.123 19966 22468 I GoLog : tcp:127.0.0.1:51416 rejected proxy/socks: insufficient header > EOF 03-16 00:36:20.610 19966 22467 I GoLog : tcp:127.0.0.1:51426 accepted tcp:203.209.250.12:443 [socks -> direct] 03-16 00:36:23.534 19966 19994 I GoLog : tcp:127.0.0.1:51440 accepted tcp:49.4.47.156:443 [socks -> direct] 03-16 00:36:23.859 19966 19993 I GoLog : Not Using Prepared: tcp,szminorshort.weixin.qq.com:80 03-16 00:36:23.859 19966 19994 I GoLog : Not Using Prepared: tcp,szminorshort.weixin.qq.com:80 03-16 00:36:29.603 19966 22466 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:36:29.603 19966 19994 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:36:30.759 19966 22479 I GoLog : tcp:127.0.0.1:50480 accepted tcp:203.209.250.12:443 [socks -> direct] 03-16 00:36:32.125 19966 22468 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:36:32.125 19966 19994 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:36:32.125 19966 19993 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:36:32.125 19966 19994 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:36:32.125 19966 19993 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:36:32.126 19966 19993 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:36:32.126 19966 19993 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:36:32.126 19966 19993 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:36:33.551 19966 19993 I GoLog : tcp:127.0.0.1:50484 accepted tcp:118.194.33.228:443 [socks -> direct] 03-16 00:36:40.107 19966 22479 I GoLog : Not Using Prepared: tcp,szminorshort.weixin.qq.com:80 03-16 00:36:40.108 19966 22471 I GoLog : Not Using Prepared: tcp,szminorshort.weixin.qq.com:80 03-16 00:36:40.843 19966 22471 I GoLog : tcp:127.0.0.1:58874 accepted tcp:203.209.250.12:443 [socks -> direct] 03-16 00:36:43.564 19966 19987 I GoLog : tcp:127.0.0.1:58882 accepted tcp:121.36.116.173:443 [socks -> direct] 03-16 00:36:45.664 19966 19994 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:36:45.666 19966 19993 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:36:45.666 19966 19993 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:36:45.667 19966 19993 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:36:48.162 19966 22468 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:36:48.163 19966 22479 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:36:48.163 19966 22471 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:36:48.163 19966 22471 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:36:48.163 19966 22471 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:36:48.164 19966 22471 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:36:48.164 19966 22471 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:36:48.165 19966 22471 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:36:50.956 19966 22466 I GoLog : tcp:127.0.0.1:60864 accepted tcp:110.76.8.204:443 [socks -> direct] 03-16 00:36:53.584 19966 22467 I GoLog : tcp:127.0.0.1:60872 accepted tcp:121.36.118.61:443 [socks -> direct] 03-16 00:36:56.467 19966 19987 I GoLog : Not Using Prepared: tcp,szminorshort.weixin.qq.com:80 03-16 00:37:01.103 19966 22468 I GoLog : tcp:127.0.0.1:58492 accepted tcp:110.76.8.204:443 [socks -> direct] 03-16 00:37:01.703 19966 19993 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:37:01.703 19966 22472 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:37:01.703 19966 22466 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:37:01.703 19966 22466 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:37:01.703 19966 22466 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:37:03.872 19966 22466 I GoLog : tcp:127.0.0.1:47432 accepted tcp:121.36.118.61:443 [socks -> direct] 03-16 00:37:04.212 19966 22471 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:37:04.212 19966 22468 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:37:04.212 19966 22479 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:37:04.212 19966 22479 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:37:04.213 19966 22479 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:37:04.213 19966 22479 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:37:04.213 19966 22479 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:37:04.213 19966 22479 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:37:11.276 19966 22466 I GoLog : tcp:127.0.0.1:47436 accepted tcp:110.76.8.204:443 [socks -> direct] 03-16 00:37:14.642 19966 19993 I GoLog : tcp:127.0.0.1:40178 accepted tcp:49.4.47.156:443 [socks -> direct] 03-16 00:37:17.767 19966 22472 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:37:17.767 19966 22468 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:37:17.767 19966 22466 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:37:17.767 19966 22468 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:37:17.767 19966 22466 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:37:17.767 19966 22466 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:37:17.767 19966 22466 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:37:20.275 19966 19987 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:37:20.275 19966 22468 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:37:20.276 19966 22467 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:37:20.276 19966 22467 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:37:20.276 19966 19993 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:37:20.277 19966 19993 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:37:20.277 19966 19993 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:37:20.277 19966 19993 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:37:21.402 19966 22471 I GoLog : tcp:127.0.0.1:40180 accepted tcp:110.76.8.204:443 [socks -> direct] 03-16 00:37:25.933 19966 22470 I GoLog : tcp:127.0.0.1:56240 accepted tcp:49.4.38.72:443 [socks -> direct] 03-16 00:37:31.622 19966 22466 I GoLog : tcp:127.0.0.1:56252 accepted tcp:110.76.8.204:443 [socks -> direct] 03-16 00:37:33.827 19966 22472 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:37:33.827 19966 22466 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:37:33.827 19966 19987 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:37:33.829 19966 19987 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:37:33.829 19966 19987 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:37:33.830 19966 19987 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:37:33.830 19966 19987 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:37:33.830 19966 19987 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:37:36.331 19966 22479 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:37:36.331 19966 19987 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:37:36.331 19966 22471 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:37:36.331 19966 19987 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:37:36.331 19966 22471 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:37:36.331 19966 19987 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:37:36.331 19966 19987 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:37:36.331 19966 19987 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:37:37.726 19966 22466 I GoLog : tcp:127.0.0.1:58260 accepted tcp:118.194.33.228:443 [socks -> direct] 03-16 00:37:41.758 19966 19994 I GoLog : tcp:127.0.0.1:58264 accepted tcp:110.76.8.204:443 [socks -> direct] 03-16 00:37:49.888 19966 19987 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:37:49.888 19966 22466 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:37:49.888 19966 22472 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:37:49.889 19966 22472 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:37:49.889 19966 22466 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:37:49.889 19966 22472 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:37:49.889 19966 22472 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:37:50.042 19966 19993 I GoLog : tcp:127.0.0.1:38642 accepted tcp:121.36.116.173:443 [socks -> direct] 03-16 00:37:51.910 19966 22472 I GoLog : tcp:127.0.0.1:38654 accepted tcp:110.76.8.204:443 [socks -> direct] 03-16 00:37:52.387 19966 22471 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:37:52.387 19966 22466 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:37:52.387 19966 22479 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:37:52.388 19966 22466 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:37:52.388 19966 19993 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:37:52.389 19966 19994 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:37:52.389 19966 19994 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:37:52.389 19966 19994 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:38:02.037 19966 19993 I GoLog : tcp:127.0.0.1:34240 accepted tcp:110.76.8.204:443 [socks -> direct] 03-16 00:38:05.935 19966 22470 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:38:05.936 19966 19987 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:38:05.937 19966 19987 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:38:05.937 19966 19987 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:38:05.937 19966 19987 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:38:05.938 19966 19987 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:38:08.452 19966 22471 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:38:08.453 19966 19994 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:38:08.453 19966 19994 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:38:08.454 19966 19994 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:38:08.454 19966 19994 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:38:08.454 19966 19994 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:38:08.454 19966 19994 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:38:08.454 19966 19987 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:38:12.209 19966 22466 I GoLog : tcp:127.0.0.1:52654 accepted tcp:203.209.245.158:443 [socks -> direct] 03-16 00:38:12.222 19966 22466 I GoLog : tcp:127.0.0.1:52640 accepted tcp:110.76.8.204:443 [socks -> direct] 03-16 00:38:20.231 19966 19994 I GoLog : Not Using Prepared: tcp,amdc.alipay.com:443 03-16 00:38:21.980 19966 22470 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:38:21.981 19966 22479 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:38:21.981 19966 22471 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:38:21.981 19966 22479 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:38:21.981 19966 22479 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:38:22.328 19966 22467 I GoLog : tcp:127.0.0.1:53670 accepted tcp:110.76.8.204:443 [socks -> direct] 03-16 00:38:24.495 19966 22472 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:38:24.495 19966 22479 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:38:24.496 19966 22479 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:38:24.497 19966 22479 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:38:24.498 19966 22479 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:38:24.499 19966 22479 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:38:24.499 19966 22479 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:38:24.499 19966 22479 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:38:27.235 19966 19993 I GoLog : tcp:127.0.0.1:50580 accepted tcp:203.209.243.114:443 [socks -> direct] 03-16 00:38:32.485 19966 22471 I GoLog : tcp:127.0.0.1:50590 accepted tcp:110.76.8.204:443 [socks -> direct] 03-16 00:38:36.338 19966 22479 I GoLog : Not Using Prepared: tcp,amdc.alipay.com:443 03-16 00:38:36.338 19966 19993 I GoLog : Not Using Prepared: tcp,amdc.alipay.com:443 03-16 00:38:38.126 19966 19994 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:38:38.126 19966 22472 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:38:38.126 19966 22472 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:38:40.543 19966 22470 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:38:40.543 19966 22472 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:38:40.543 19966 19993 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:38:40.543 19966 22472 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:38:40.543 19966 19987 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:38:40.543 19966 19987 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:38:40.544 19966 19987 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:38:40.544 19966 19987 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:38:42.254 19966 19987 I GoLog : tcp:127.0.0.1:34678 accepted tcp:203.209.250.41:443 [socks -> direct] 03-16 00:38:42.599 19966 19987 I GoLog : tcp:127.0.0.1:34688 accepted tcp:110.76.8.204:443 [socks -> direct] 03-16 00:38:50.121 19966 19994 I GoLog : tcp:127.0.0.1:56696 rejected proxy/socks: insufficient header > EOF 03-16 00:38:52.406 19966 22471 I GoLog : Not Using Prepared: tcp,amdc.alipay.com:443 03-16 00:38:52.406 19966 19993 I GoLog : Not Using Prepared: tcp,amdc.alipay.com:443 03-16 00:38:52.406 19966 19993 I GoLog : Not Using Prepared: tcp,amdc.alipay.com:443 03-16 00:38:52.768 19966 19993 I GoLog : tcp:127.0.0.1:56702 accepted tcp:203.209.250.12:443 [socks -> direct] 03-16 00:38:54.380 19966 19987 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:38:54.381 19966 22479 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:38:55.564 19966 22479 I GoLog : tcp:127.0.0.1:53742 accepted tcp:183.47.121.104:80 [socks -> direct] 03-16 00:38:55.585 19966 19994 I GoLog : tcp:127.0.0.1:53756 accepted tcp:183.47.121.104:80 [socks -> direct] 03-16 00:38:56.317 19966 19966 D com.v2ray.ang: SCREEN_OFF, stop querying stats 03-16 00:38:56.624 19966 22478 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:38:56.624 19966 22466 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:38:56.624 19966 22466 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:38:56.625 19966 22466 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:38:56.625 19966 22466 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:38:56.625 19966 22466 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:38:56.625 19966 22466 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:38:56.626 19966 22466 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:38:57.274 19966 22466 I GoLog : tcp:127.0.0.1:53768 accepted tcp:203.209.251.147:443 [socks -> direct] 03-16 00:39:02.910 19966 22468 I GoLog : tcp:127.0.0.1:53778 accepted tcp:203.209.250.12:443 [socks -> direct] 03-16 00:39:03.593 19966 19993 I GoLog : Not Using Prepared: tcp,szextshort.weixin.qq.com:80 03-16 00:39:03.593 19966 22471 I GoLog : Not Using Prepared: tcp,szextshort.weixin.qq.com:80 03-16 00:39:08.446 19966 19994 I GoLog : Not Using Prepared: tcp,amdc.alipay.com:443 03-16 00:39:08.447 19966 22472 I GoLog : Not Using Prepared: tcp,amdc.alipay.com:443 03-16 00:39:08.448 19966 22472 I GoLog : Not Using Prepared: tcp,amdc.alipay.com:443 03-16 00:39:08.449 19966 22472 I GoLog : Not Using Prepared: tcp,amdc.alipay.com:443 03-16 00:39:08.762 19966 22479 I GoLog : tcp:127.0.0.1:40816 accepted tcp:183.60.8.218:80 [socks -> direct] 03-16 00:39:10.779 19966 22466 I GoLog : Not Using Prepared: tcp,dnkeeper.platform.dbankcloud.cn:443 03-16 00:39:10.831 19966 22478 I GoLog : tcp:127.0.0.1:40820 accepted tcp:183.60.8.218:80 [socks -> direct] 03-16 00:39:12.296 19966 19993 I GoLog : tcp:127.0.0.1:40830 accepted tcp:203.209.230.39:443 [socks -> direct] 03-16 00:39:12.687 19966 19987 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:39:12.687 19966 19993 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:39:12.687 19966 19993 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:39:12.687 19966 19993 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:39:12.687 19966 22478 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:39:12.687 19966 22479 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:39:12.688 19966 22479 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:39:13.089 19966 22478 I GoLog : tcp:127.0.0.1:40832 accepted tcp:203.209.250.12:443 [socks -> direct] 03-16 00:39:19.663 19966 22471 I GoLog : Not Using Prepared: tcp,szextshort.weixin.qq.com:80 03-16 00:39:19.663 19966 22466 I GoLog : Not Using Prepared: tcp,szextshort.weixin.qq.com:80 03-16 00:39:19.668 19966 19994 I GoLog : Not Using Prepared: tcp,szextshort.weixin.qq.com:80 03-16 00:39:19.671 19966 22466 I GoLog : Not Using Prepared: tcp,szextshort.weixin.qq.com:80 03-16 00:39:23.199 19966 19993 I GoLog : tcp:127.0.0.1:55644 accepted tcp:110.76.8.204:443 [socks -> direct] 03-16 00:39:24.499 19966 22472 I GoLog : Not Using Prepared: tcp,amdc.alipay.com:443 03-16 00:39:24.499 19966 19987 I GoLog : Not Using Prepared: tcp,amdc.alipay.com:443 03-16 00:39:24.499 19966 19993 I GoLog : Not Using Prepared: tcp,amdc.alipay.com:443 03-16 00:39:24.499 19966 19987 I GoLog : Not Using Prepared: tcp,amdc.alipay.com:443 03-16 00:39:24.499 19966 19987 I GoLog : Not Using Prepared: tcp,amdc.alipay.com:443 03-16 00:39:27.311 19966 22468 I GoLog : tcp:127.0.0.1:56394 accepted tcp:203.209.243.4:443 [socks -> direct] 03-16 00:39:28.751 19966 22479 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:39:28.751 19966 19993 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:39:28.751 19966 22466 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:39:28.751 19966 22478 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:39:28.751 19966 22478 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:39:28.752 19966 22478 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:39:28.753 19966 22478 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:39:28.753 19966 22478 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:39:33.316 19966 22478 I GoLog : tcp:127.0.0.1:56406 accepted tcp:110.76.8.204:443 [socks -> direct] 03-16 00:39:35.747 19966 22471 I GoLog : Not Using Prepared: tcp,szextshort.weixin.qq.com:80 03-16 00:39:35.747 19966 22472 I GoLog : Not Using Prepared: tcp,szextshort.weixin.qq.com:80 03-16 00:39:35.748 19966 22472 I GoLog : Not Using Prepared: tcp,szextshort.weixin.qq.com:80 03-16 00:39:35.748 19966 22472 I GoLog : Not Using Prepared: tcp,szextshort.weixin.qq.com:80 03-16 00:39:40.559 19966 19987 I GoLog : Not Using Prepared: tcp,amdc.alipay.com:443 03-16 00:39:40.559 19966 19994 I GoLog : Not Using Prepared: tcp,amdc.alipay.com:443 03-16 00:39:40.559 19966 19994 I GoLog : Not Using Prepared: tcp,amdc.alipay.com:443 03-16 00:39:40.559 19966 19994 I GoLog : Not Using Prepared: tcp,amdc.alipay.com:443 03-16 00:39:40.560 19966 19994 I GoLog : Not Using Prepared: tcp,amdc.alipay.com:443 03-16 00:39:43.401 19966 22472 I GoLog : tcp:127.0.0.1:47922 accepted tcp:110.76.8.204:443 [socks -> direct] 03-16 00:39:44.794 19966 19993 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:39:44.795 19966 22479 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:39:44.795 19966 22479 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:39:44.795 19966 22479 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:39:44.795 19966 22479 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:39:44.795 19966 22468 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:39:44.795 19966 22479 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:39:44.795 19966 22479 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:39:51.899 19966 22472 I GoLog : Not Using Prepared: tcp,szextshort.weixin.qq.com:80 03-16 00:39:51.899 19966 19994 I GoLog : Not Using Prepared: tcp,szextshort.weixin.qq.com:80 03-16 00:39:51.899 19966 19994 I GoLog : Not Using Prepared: tcp,szextshort.weixin.qq.com:80 03-16 00:39:51.900 19966 22471 I GoLog : Not Using Prepared: tcp,szextshort.weixin.qq.com:80 03-16 00:39:53.478 19966 22479 I GoLog : tcp:127.0.0.1:45974 accepted tcp:110.76.8.204:443 [socks -> direct] 03-16 00:39:56.603 19966 19987 I GoLog : Not Using Prepared: tcp,amdc.alipay.com:443 03-16 00:39:56.603 19966 22479 I GoLog : Not Using Prepared: tcp,amdc.alipay.com:443 03-16 00:39:56.603 19966 22479 I GoLog : Not Using Prepared: tcp,amdc.alipay.com:443 03-16 00:39:56.603 19966 22479 I GoLog : Not Using Prepared: tcp,amdc.alipay.com:443 03-16 00:40:00.836 19966 19993 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:40:00.836 19966 22472 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:40:00.837 19966 22472 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:40:00.837 19966 19994 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:40:00.838 19966 19994 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:40:00.838 19966 19994 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:40:00.839 19966 19994 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:40:00.839 19966 19994 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:40:03.598 19966 22478 I GoLog : tcp:127.0.0.1:55634 accepted tcp:110.76.8.204:443 [socks -> direct] 03-16 00:40:08.184 19966 22468 I GoLog : Not Using Prepared: tcp,szextshort.weixin.qq.com:80 03-16 00:40:08.184 19966 22471 I GoLog : Not Using Prepared: tcp,szextshort.weixin.qq.com:80 03-16 00:40:08.185 19966 22472 I GoLog : Not Using Prepared: tcp,szextshort.weixin.qq.com:80 03-16 00:40:08.185 19966 22472 I GoLog : Not Using Prepared: tcp,szextshort.weixin.qq.com:80 03-16 00:40:12.776 19966 22478 I GoLog : Not Using Prepared: tcp,amdc.alipay.com:443 03-16 00:40:12.776 19966 19993 I GoLog : Not Using Prepared: tcp,amdc.alipay.com:443 03-16 00:40:12.778 19966 19993 I GoLog : Not Using Prepared: tcp,amdc.alipay.com:443 03-16 00:40:13.700 19966 22466 I GoLog : tcp:127.0.0.1:48360 accepted tcp:110.76.8.204:443 [socks -> direct] 03-16 00:40:16.892 19966 19994 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:40:16.893 19966 22466 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:40:16.893 19966 22472 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:40:16.893 19966 22472 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:40:16.893 19966 22472 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:40:16.895 19966 22471 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:40:16.896 19966 22471 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 03-16 00:40:16.896 19966 22471 I GoLog : Not Using Prepared: tcp,mgw.alipay.com:443 ```

环境信息

harmonyOS 4

额外信息(可选)

APP中更改的设置: VPN DNS: 223.5.5.5 其余APP设置都使用的默认。

使用的xray配置:

{
  "log": {
    "loglevel": "warning",
    "dnsLog": true
  },
  "inbounds": [
    {
      "tag": "socks",
      "port": 10808,
      "listen": "0.0.0.0",
      "protocol": "socks",
      "sniffing": {
        "enabled": true,
        "destOverride": [
          "http",
          "tls",
          "quic"
        ],
        "routeOnly": false
      },
      "settings": {
        "auth": "noauth",
        "udp": false
      }
    },
    {
      "tag": "http",
      "port": 10809,
      "listen": "0.0.0.0",
      "protocol": "http",
      "sniffing": {
        "enabled": true,
        "destOverride": [
          "http",
          "tls",
          "quic"
        ],
        "routeOnly": false
      },
      "settings": {
        "allowTransparent": false
      }
    }
  ],
  "outbounds": [
    {
      "tag": "proxy",
      "protocol": "vless",
      "settings": {
        "vnext": [
          {
            "address": "xxx保护",
            "port": 443,
            "users": [
              {
                "id": "xxx保护",
                "encryption": "none",
                "flow": "xtls-rprx-vision"
              }
            ]
          }
        ]
      },
      "streamSettings": {
        "network": "tcp",
        "security": "reality",
        "realitySettings": {
          "allowInsecure": false,
          "serverName": "www.usc.edu",
          "fingerprint": "chrome",
          "show": false,
          "publicKey": "xxx保护",
          "shortId": "xxx保护",
          "spiderX": "/"
        },
        "tcpSettings": {
          "header": {
            "type": "none"
          }
        }
      }
    },
    {
      "tag": "direct",
      "protocol": "freedom",
      "settings": {
        "domainStrategy": "UseIP"
      }
    },
    {
      "tag": "block",
      "protocol": "blackhole",
      "settings": {
        "response": {
          "type": "http"
        }
      }
    }
  ],
  "dns": {
    "hosts": {
      "domain:googleapis.cn": "googleapis.com"
    },
    "servers": [
      "https://223.5.5.5/dns-query",
      "localhost",
      {
        "address": "localhost",
        "domains": [
          "geosite:cn",
          "geosite:private",
        ]
      }
    ]
  },
  "routing": {
    "domainStrategy": "IPIfNonMatch",
    "rules": [
      {
        "type": "field",
        "outboundTag": "direct",
        "ip": [
          "223.5.5.5",
          "8.8.4.4"
        ]
      },
      {
        "type": "field",
        "outboundTag": "direct",
        "protocol": [
          "bittorrent"
        ]
      },
      {
        "type": "field",
        "outboundTag": "block",
        "domain": [
          "geosite:category-ads-all",
          "geosite:pixiv@ads"
        ]
      },
      {
        "type": "field",
        "outboundTag": "block",
        "network": "udp",
        "port": "443"
      },
      {
        "type": "field",
        "outboundTag": "proxy",
        "domain": [
          "geosite:bing",
          "geosite:github",
          "geosite:onedrive",
          "geosite:msn",
          "geosite:google",
        ]
      },
      {
        "type": "field",
        "outboundTag": "direct",
        "domain": [
          "geosite:cn",
          "geosite:private",
        ]
      }
    ]
  }
}
JotmKKmkLTzE commented 7 months ago

已解决。 首先:V2rayNG设置中 开启本地DNS, 并加载xray配置中。 最后:把 xray配置中的 dns部分,删除 localhost, 使用具体的dns地址,如 114.114.114.114。因为安卓系统使用VPN时, DNS 会被 VPN 服务接管并导流到 VPN 应用,填 localhost 可能会导致死循环(https://github.com/XTLS/Xray-core/issues/2280) 最后贴一下改过的配置:

{
  "log": {
    "loglevel": "warning",
    "dnsLog": true
  },
  "inbounds": [
    // 其他入站配置: socks 和 http
    {
      "listen": "127.0.0.1",
      "port": 10853,
      "protocol": "dokodemo-door",
      "settings": {
        "address": "223.5.5.5",
        "network": "tcp,udp",
        "port": 53
      },
      "tag": "dns-in"
    }
  ],
  "outbounds": [
    // 其他出站配置
    {
      "protocol": "dns",
      "tag": "dns-out"
    }
  ],
  "dns": {
    "hosts": {
      "domain:googleapis.cn": "googleapis.com"
    },
    "servers": [
      "https+local://223.5.5.5/dns-query",
      "114.114.114.114",
      {
        "address": "114.114.114.114",
        "domains": [
          "geosite:cn",
          "geosite:private"
        ]
      }
    ]
  },
  "routing": {
    "domainStrategy": "IPIfNonMatch",
    "rules": [
      {
        "inboundTag": [
          "dns-in"
        ],
        "outboundTag": "dns-out",
        "type": "field"
      },
     // 其他路由设置
    ]
  }
}