mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #3533] https2http gives incorrect X-Forwarded-For #2819
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#2819
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 @kylianpl on GitHub (Jul 17, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3533
Bug Description
When using the https2http plugin, the server will send his own ip in the X-Forwarded-For
example:
frp server is 1.2.3.4
frp client is 5.6.7.8
the user is 9.9.9.9
if the user 9.9.9.9 connects to 1.2.3.4, the frp client will recieve
X-Forwarded-For: 1.2.3.4the frp client should recieve
X-Forwarded-For: 9.9.9.9frpc Version
0.51.0
frps Version
0.51.0
System Architecture
linux/amd64
Configurations
Logs
No response
Steps to reproduce
No response
Affected area
@fatedier commented on GitHub (Jul 18, 2023):
https://github.com/fatedier/frp#http-x-forwarded-for
It is currently only valid for HTTP.
@fatedier commented on GitHub (Jul 18, 2023):
However, perhaps we can achieve it by enabling proxy protocol support in the https2http plugin.
@ac-sc commented on GitHub (Aug 11, 2023):
https使用X-Forwarded-For也不支持对么, 以后能支持吗?
@ckpw commented on GitHub (Sep 25, 2023):
will this be supported in the future?