Grasscutters / Grasscutter

A server software reimplementation for a certain anime game.
https://grasscutter.io/
GNU Affero General Public License v3.0
16.2k stars 4.47k forks source link

[Feature Request] Add ProxyProtocol support | 支持ProxyProtocol #2241

Open DFQY opened 1 year ago

DFQY commented 1 year ago

EN: Similar to #1975 but ProxyProtocol can be used in not only dispatch server but also game server. That will enable reverse proxy as well as intranet penetration tools such as FRP to access user IPs normally, helpful with hosting public server (such as using CDN based on 4-layer reverse proxy) or playing with friends.

CN: 如上文,简单概括就是可以获取用户真实IP,这样就能用包括但不限于 阿里云IP应用加速(我本人在用) 这类的基于四层代理协议的CDN,及各种内网穿透软件获取真实IP,解决了如 #1975 中提到的诸多痛点

TomyJan commented 1 year ago

你既然已经找到这个 issue 了那你没看到这已经实现了吗

DFQY commented 1 year ago

你既然已经找到这个 issue 了那你没看到这已经实现了吗

实现的是X-Real-IP请求头,我这里的是Proxy Protocol,二者不是一个东西