Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用http2tcp client模式的时候出现问题 #1

Open
alextsao1999 opened this issue Sep 21, 2022 · 2 comments
Open

使用http2tcp client模式的时候出现问题 #1

alextsao1999 opened this issue Sep 21, 2022 · 2 comments

Comments

@alextsao1999
Copy link

alextsao1999 commented Sep 21, 2022

命令:
http2tcp -c -d 127.0.0.1:222 -e https://proxy/tcp -t server

输出:

2022/09/21 15:44:14 statusCode != 101: 302 Moved Temporarily: <html>
<head><title>302 Found</title></head>
<body bgcolor="white">
<center><h1>302 Found</h1></center>
<hr><center>openresty/xx</center>
</body>
</html>

不知道这个是什么情况

@movsb
Copy link
Owner

movsb commented Sep 21, 2022

看起来是你的 nginx 的 location 配置有误。

你可以尝试直接用 curl 请求一下你的 https://proxy/tcp 会是什么效果。

@movsb
Copy link
Owner

movsb commented Sep 21, 2022

我更新了一下代码,现在能打印更详细的错误信息(302 时的重定向 URL),你可以重新编译试试看看。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants