Comments (4)
More about the configuration of the 7th layer HTTP will be planned for the future v2 version, and currently, no additional configuration options will be provided.
x-real-ip
is not a standard header defined by the RFC. The current code uses the native handling logic of Go and does not perform any additional processing.
from frp.
This should be expected, otherwise the client can pass any untrusted content.
In your scenario, you can test whether the issue can be resolved by using requestHeaders.set.x-forwarded-proto = "https"
.
from frp.
Understood. I can certainly hack it in.
It might be useful though for frps to have some kind of "behind proxy" mode, where this header is trusted. Because I assume this will be a 99% use case for the tool.
(also, should x-real-ip
then be passed through?)
from frp.
Ok, that's fair. Closing the issue.
from frp.
Related Issues (20)
- [http2]代理一个只支持http2的server, frp返回502错误码 HOT 9
- 设置[[proxies]] HOT 2
- Unable to use token(0.58) HOT 1
- 使用基本认证浏览器在OPTIONS预检时会跨域报错
- 编译提示目录不存在,清大佬们看看 HOT 1
- 重编译后客户端无法连接到服务器 HOT 3
- 版本0.58.0的客户端SSH频发性断连 HOT 14
- 请问可以更新下UDP隧道支持proxy protocol吗 HOT 1
- Always uses maximum bandwidth HOT 1
- 此应用无法在你的电脑上运行 HOT 3
- frpc 连接过程中,电脑发现断网后,怎么重连呀
- 建议默认不要启用DNS解析回退 HOT 11
- proxies randomly die over time but ~20% of them stay up HOT 1
- The xtcp connection is down HOT 6
- [Feature Request] static_file: disable directory listing HOT 1
- 'localAddr' of https2http seems not working. HOT 2
- [Feature Request] 客户端日志增加日志类型,只有一个日志文件 HOT 1
- android无法获取到assistedAddresses,无法连接 HOT 3
- nginx 转发请求到 frps 的 HTTPS 时报错 502 HOT 1
- Building iOS Framework Fails - functions and methods must return either zero or one values, and optionally an error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from frp.