Skip to content

Bug Report: HAProxy is not supported. #499

@cygbs

Description

@cygbs

General information

The player in Sonar connected via HAProxy is from 127.0.0.1.

Steps to reproduce

  1. Set <server>config/paper-global.yml -> proxies.proxy-protocol to true.
  2. In frpc.toml set transport.proxyProtocolVersion="v2").
  3. Restart server and frpc.
  4. Worked fine, the server thought the player was joining from their real IP address.
  5. Sonar print every player's IP is 127.0.0.1.

Sonar dump

sonar dump
[00:47:14 INFO]: [Sonar] 生成信息: {"memory":{"total":"8 GiB","max":"32 GiB","free":"4 GiB","used":"4 GiB"},"runtime":{"virtualCores":24,"jvmArguments":["-XX:ThreadPriorityPolicy\u003d1","-XX:+UnlockExperimentalVMOptions","-XX:+EnableJVMCIProduct","-XX:-UnlockExperimentalVMOptions","-Xms8G","-Xmx32G"],"vmName":"Java HotSpot(TM) 64-Bit Server VM","vmVendor":"Oracle Corporation","vmVersion":"24.0.2+11-jvmci-b01"},"os":{"name":"Windows Server 2025","arch":"amd64","version":"10.0"},"sonar":{"version":"2.1.35 (3ca1852)","platform":"BUKKIT","gitBranch":"main","gitCommit":"3ca1852e"}}

Additional information

The full server log is here:

https://mclo.gs/6tDsnye

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions