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:
commit
38ca7adb8b
@ -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) { }
|
||||
|
Loading…
Reference in New Issue
Block a user