ginuerzh / gost

GO Simple Tunnel - a simple tunnel written in golang
MIT License
15.47k stars 2.42k forks source link

客户端使用clash for windows一直连接不上,服务端一直报malformed http request #919

Closed yudeqang closed 1 year ago

yudeqang commented 1 year ago

服务端使用: gost -L admin:123456@:3002

clash配置: proxies:

服务端日志一直报错: 2023/01/09 20:45:33 http.go:132: [http] 112.4.42.106:5317 - 192.168.0.178:3002 : malformed HTTP request "\x16\x03\x01\x00\xea\x01\x00\x00\xe6\x03\x032Y$\x18\xea:\x16Q\xee\x8e\x13\xbb\a\x84\x886&y\xdeά\xdb\x16\xddX\xa5\xb9\xae\x1f\xcc#( \xbe\xb0\ru\x01:\xbf֊\xfe\x06{\xb9\x8f\xb9;\xeb}o\x911\xa0\x95\xe7\xf3ps\x9c8\xbd\xfe\xff\x00&\xc0+\xc0/\xc0,\xc00̨̩\xc0\t\xc0\x13\xc0"

RocFang commented 1 year ago

这个报错的意思,是你在向 http 服务发送 https 请求。

代理协议应该为 http 而非 https