Xray-core icon indicating copy to clipboard operation
Xray-core copied to clipboard

测速链接重定向

Open jwstaceyOvO opened this issue 4 years ago • 6 comments

有些服务器到测速域名的延迟偏高,是否可以实现类似的需求? 检测到测速链接https://www.google.com/generate_204,则重定向为127.0.0.1的host,谷歌搜索不受影响

jwstaceyOvO avatar Dec 20 '21 01:12 jwstaceyOvO

你可以设置测速链接 probeURL https://www.v2fly.org/config/observatory.html#observatoryobject

yuhan6665 avatar Dec 20 '21 02:12 yuhan6665

请问这个可以影响客户端默认测速链接测试的结果吗?我想要的是客户端的测速链接在服务端上重定向到127.0.0.1,不需要更改客户端测速链接

yuhan6665 @.***> 于2021年12月20日周一 10:17写道:

你可以设置测速链接 probeURL https://www.v2fly.org/config/observatory.html#observatoryobject

— Reply to this email directly, view it on GitHub https://github.com/XTLS/Xray-core/issues/865#issuecomment-997535833, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJIUKGM2IX7HKBMDRGPCFH3UR2G2XANCNFSM5KMR7G5Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

jwstaceyOvO avatar Dec 20 '21 02:12 jwstaceyOvO

由于是去 google 的真链接所以服务器无法重定向,不然就失去意义了。如果不想要这个特性,可以把连接改成不加密的 http

yuhan6665 avatar Dec 20 '21 02:12 yuhan6665

目前我可以改www.google.com为127.0.0.1,但是如此会导致谷歌无法访问,所以想问是否有特化url的实现,比如针对url: /generate_204才解析为127.0.0.1,其余正常解析

yuhan6665 @.***> 于2021年12月20日周一 10:31写道:

由于是去 google 的真链接所以服务器无法重定向,不然就失去意义了。如果不想要这个特性,可以把连接改成不加密的 http

— Reply to this email directly, view it on GitHub https://github.com/XTLS/Xray-core/issues/865#issuecomment-997541531, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJIUKGIHOVQXVGMO7UTUFQTUR2IOTANCNFSM5KMR7G5Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

jwstaceyOvO avatar Dec 20 '21 02:12 jwstaceyOvO

path 加密的 所以不可能

yuhan6665 avatar Dec 20 '21 02:12 yuhan6665

那对于http的测速链接是否可以实现以上效果?如果有,如何实现

yuhan6665 @.***> 于2021年12月20日周一 10:39写道:

path 加密的 所以不可能

— Reply to this email directly, view it on GitHub https://github.com/XTLS/Xray-core/issues/865#issuecomment-997544121, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJIUKGOSCRA7UGGORBMLHVDUR2JOZANCNFSM5KMR7G5Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

jwstaceyOvO avatar Dec 20 '21 02:12 jwstaceyOvO