一个支持节点与订阅链接的 Linux 命令行代理工具 | A command-line tool for one-click proxy in your research and development without installing v2ray or anything else (only for linux)
GNU Affero General Public License v3.0
1.47k
stars
117
forks
source link
使用gg报错websocket: bad handshake,但使用windows客户端能正常使用该订阅 #76
[me@test-archlinux tmp]$ ./gg-linux-x86_64 -vv -s https://sub.xxx.com/sub/uuidkey?clash=1 curl -v www.google.com
TRAC[0000] Version: v0.2.18
TRAC[0000] OS/Arch: linux/amd64
TRAC[0000] No config file found. Using default values.
INFO[0000] subscription.cache_last_node will be disabled because the given subscription link is different from the configured one.
TRAC[0000] Config:
test_url=https://connectivitycheck.gstatic.com/generate_204
subscription.cache_last_node=false
subscription.link=https://sub.xxx.com/sub/uuidkey?clash=1
subscription.select=first
no_udp=false
test_node_before_use=true
node=
cache.subscription.last_node=
allow_insecure=
INFO[0000] Pulling the subscription...
TRAC[0001] try to resolve as SIP008
TRAC[0001] invalid character 'm' looking for beginning of value
TRAC[0001] try to resolve as Clash
INFO[0001] Finding the first available node...
TRAC[0001] test fail: 法国1t-xxxname节点: connectivity test failed: Get "https://connectivitycheck.gstatic.com/generate_204": [Ws]: dial to ws://fr1t-displayxxxname.domain:443: websocket: bad handshake
TRAC[0002] test fail: 美国2t-xxxname节点: connectivity test failed: Get "https://connectivitycheck.gstatic.com/generate_204": [Ws]: dial to ws://us2t-videosxxxname.domain:443: websocket: bad handshake
TRAC[0002] test fail: 美国1t-xxxname节点: connectivity test failed: Get "https://connectivitycheck.gstatic.com/generate_204": [Ws]: dial to ws://us1txxxname.domain:443: websocket: bad handshake
TRAC[0002] test fail: 美国4-xxxname节点: connectivity test failed: Get "https://connectivitycheck.gstatic.com/generate_204": [Ws]: dial to ws://us4t-blockxxxname.domain:443: websocket: bad handshake
TRAC[0002] test fail: 美国3-xxxname节点: connectivity test failed: Get "https://connectivitycheck.gstatic.com/generate_204": [Ws]: dial to ws://us3txxxname.domain:443: websocket: bad handshake
FATA[0002] GetDialer:cannot find any available node in your subscription, and you can try again with argument '-vv' to get more information
使用 gg 测试的结果显示没有可用节点,报
websocket: bad handshake
错误直接 curl 订阅链接没问题,我本地windows使用这个订阅也能正常上互联网