Skip to content

Commit

Permalink
更新 LoginPlayerHelper.java
Browse files Browse the repository at this point in the history
  • Loading branch information
shulng authored Sep 30, 2024
1 parent 354c545 commit 3ab4356
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ public static boolean recordCurrentIP(Player player) {
Long exitTime = playerExitTimes.get(playerName);

try {
InetAddress localHost = InetAddress.getByName("localhost");
if (InetAddress.getByName(currentIP).equals(localHost)) {
if (InetAddress.getByName(currentIP).isLoopbackAddress()) {
return false;
}
} catch (UnknownHostException e) {
Expand Down

0 comments on commit 3ab4356

Please sign in to comment.