Open someRandomDude-a opened 1 month ago
I'm seeing this same issue. I tried adding my local IPs in the "proxy-protocol-whitelisted-ips" and it still is not working. I can even see the ip/range in the server log of whitelisted IPs. I do not see a block message come up in the log. It just fails. Works fine though if I access it from the proxy address. I can access locally again if I set "enable-proxy-protocol" to false.
I'm assuming the client is not using proxy protocol when trying to connect to the server, but I'm not sure how to fix that.
I tried fixing it myself and I noticed that the normal method for parsing IP's is skipped, I tried to fix the problem by simply adding both methods, your method to get the IP from proxyprotocolv1/2 and then minecrafts original method. It seems to expect proxy protocol only connections hence any 'random' IP with no wrapper is ignored.
This is my hypothesis, I tried to fix it but.... yeah didn't succeed
Using this mod on my server makes it impossible for localhosts to connect and I want to fix that problem if possible