[GH-ISSUE #4418] 代理http返回 400 Bad Request #3491

Closed
opened 2026-05-05 14:14:36 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @luyanfeng on GitHub (Sep 4, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4418

Bug Description

代理springboot 服务 http服务,
返回 400 Bad Request

frpc Version

0.60.0

frps Version

0.60.0

System Architecture

linux/amd64 (ubuntu24.04)

Configurations

frpc:

[[proxies]]
name = "sgy"
type = "tcp"
#type = "http"
localIP = "127.0.0.1"
localPort = 9236
transport.proxyProtocolVersion = "v2"
subdomain = "sgy"

Logs

No response

Steps to reproduce

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @luyanfeng on GitHub (Sep 4, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/4418 ### Bug Description 代理springboot 服务 http服务, 返回 400 Bad Request ### frpc Version 0.60.0 ### frps Version 0.60.0 ### System Architecture linux/amd64 (ubuntu24.04) ### Configurations frpc: ``` [[proxies]] name = "sgy" type = "tcp" #type = "http" localIP = "127.0.0.1" localPort = 9236 transport.proxyProtocolVersion = "v2" subdomain = "sgy" ``` ### Logs _No response_ ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@luyanfeng commented on GitHub (Sep 4, 2024):

不知道为什么给关了,

实事上,我改用ini文件配置却成功了.

是不是说明.toml的配置方式是有bug的呢?

<!-- gh-comment-id:2327851547 --> @luyanfeng commented on GitHub (Sep 4, 2024): 不知道为什么给关了, 实事上,我改用ini文件配置却成功了. 是不是说明.toml的配置方式是有bug的呢?
Author
Owner

@zhangtianming777 commented on GitHub (Oct 25, 2024):

添加了这个配置:transport.proxyProtocolVersion = "v2" 请问你是否可以获取到用户真实IP呢?

<!-- gh-comment-id:2436986159 --> @zhangtianming777 commented on GitHub (Oct 25, 2024): 添加了这个配置:transport.proxyProtocolVersion = "v2" 请问你是否可以获取到用户真实IP呢?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#3491
No description provided.