Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
flaming-archer committed Apr 6, 2024
1 parent 6f4f616 commit e7da34f
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -324,14 +324,13 @@ static String getIPAddress() {
}
} else {
// if kerberos is not enabled
Method method = null;
try {
method = HMSHandler.class.getMethod("getThreadLocalIpAddress", null);
Method method = HMSHandler.class.getDeclaredMethod("getThreadLocalIpAddress", null);
method.setAccessible(true);
return (String) method.invoke(null, null);
} catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException e) {
throw new RuntimeException(e);
}
// return HMSHandler.getThreadLocalIpAddress();
}
return null;
}
Expand Down

0 comments on commit e7da34f

Please sign in to comment.