Ichbinjoe / MCAuthenticator

2FA for Minecraft!
https://www.spigotmc.org/resources/mcauthenticator.18727/
GNU General Public License v3.0
42 stars 15 forks source link

I think http://icanhazepoch.com/ is down #35

Closed PhanaticD closed 6 years ago

PhanaticD commented 6 years ago

title says it all, so the plugin fails to start

Ichbinjoe commented 6 years ago

As is, if icanhazepoch.com fails to respond, the server will spit out a scary looking warning, however should start fine.

https://github.com/parallelblock/MCAuthenticator/blob/432afef2605718a7b45a446b69d8415ea623333f/bukkit/src/main/java/io/ibj/mcauthenticator/auth/RFC6238.java#L154

astei commented 5 years ago

MCAuthenticator's code to check the site didn't work, because it was using a default Java user-agent which Cloudflare (which, apparently, now hosts icanhazepoch.com) rejects.

I've changed the user-agent so it works now.