1
mirror of https://github.com/rapid7/metasploit-payloads synced 2024-11-20 14:39:22 +01:00

Land #461, fix empty string comparison

This commit is contained in:
Tim W 2021-02-12 15:45:03 +00:00
commit 38ca7adb8b

View File

@ -29,7 +29,7 @@ public class Utils {
public static String getHostname() {
try {
String result = InetAddress.getLocalHost().getHostName();
if (result != "") {
if (result.length() != 0) {
return result;
}
} catch (UnknownHostException e) { }