frp icon indicating copy to clipboard operation
frp copied to clipboard

[Feature Request] xtcp 添加 proxy protocol 的支持

Open Nats-ji opened this issue 2 years ago • 3 comments

Describe the feature request

希望xtcp协议也可以支持proxy protocol来获取用户端的ip。

Describe alternatives you've considered

No response

Affected area

  • [ ] Docs
  • [ ] Installation
  • [ ] Performance and Scalability
  • [ ] Security
  • [ ] User Experience
  • [ ] Test and Release
  • [ ] Developer Infrastructure
  • [ ] Client Plugin
  • [ ] Server Plugin
  • [ ] Extensions
  • [ ] Others

Nats-ji avatar Jan 10 '22 12:01 Nats-ji

Can you describe more about your usage scenario?

fatedier avatar Jan 10 '22 14:01 fatedier

I'm currently running a Minecraft server behind NAT. I want to use frp's XTCP mode for the reverse proxying, so the players can connect directly to the Minecraft server to reduce the latency. I also need to know the players' real IP addresses, however currently XTCP can't do that. I'm currently using TCP mode's proxy protocol to achieve this, but the TCP mode will add extra latency because all the traffic is routed through the frp server first. That's why I want to request the support of the proxy protocol in XTCP mode.

Nats-ji avatar Jan 10 '22 17:01 Nats-ji

Got it.

fatedier avatar Jan 11 '22 02:01 fatedier