mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #3864] transport.proxyProtocolVersion = "v2"302/400/404 #3072
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#3072
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cancundeyingzi on GitHub (Dec 20, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3864
Bug Description
toml格式,网址a.打码会被302到网址b.打码
别的全部没动,只换了配置文件
nginx,服务器等全部没任何变动
去掉transport.proxyProtocolVersion = "v2"正常
挂到alist时则会400,同样去掉transport.proxyProtocolVersion = "v2"正常



挂python-flask会404,同样去掉transport.proxyProtocolVersion = "v2"正常(绝对没有打错字,frpc也显示 start proxy success")
frpc Version
0.53
frps Version
0.53
System Architecture
frps:linux/amd64 frpc: windows/amd64
Configurations
nginx配置:
Logs
127.0.0.1 - - [20/Dec/2023:09:52:09 +0800] "\x00" 302 145 "-" "-"
127.0.0.1 - - [20/Dec/2023:09:52:11 +0800] "\x00" 302 145 "-" "-"
127.0.0.1 - - [20/Dec/2023:09:52:13 +0800] "\x00" 302 145 "-" "-"
127.0.0.1 - - [20/Dec/2023:09:52:15 +0800] "\x00" 302 145 "-" "-"
Steps to reproduce
...
Affected area
@xqzr commented on GitHub (Dec 22, 2023):
@github-actions[bot] commented on GitHub (Jan 22, 2024):
Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
@ErixWong commented on GitHub (Feb 25, 2024):
I have the same issue, did you guys get a work around?
@cancundeyingzi commented on GitHub (Feb 25, 2024):
去掉transport.proxyProtocolVersion = "v2"
@ErixWong commented on GitHub (Feb 25, 2024):
谢谢你的回复。
是的只能这样。但我需要真实IP地址传回。
我试了nginx和jellyfin的SSL,都不行。
@cancundeyingzi commented on GitHub (Feb 25, 2024):
@cancundeyingzi commented on GitHub (Feb 25, 2024):
不要在http使用transport.proxyProtocolVersion = "v2"
仅在https中使用...别的不清楚,
截图可以参考
@ErixWong commented on GitHub (Feb 25, 2024):
我只有https站点,但也遇到了这个问题,edge报错说证书为空。很奇怪。
@cancundeyingzi commented on GitHub (Feb 25, 2024):
在局域网内检查有没有证书问题
@ErixWong commented on GitHub (Feb 26, 2024):
没有证书问题。
局域网用内网地址访问需要跳过证书检查,如果把域名设到hosts文件就能正常访问。
外网访问,去掉这行就好了。