We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57693ad commit 3232917Copy full SHA for 3232917
1 file changed
cSploit/src/org/csploit/android/net/metasploit/Option.java
@@ -105,12 +105,10 @@ public void setValue(String value) throws NumberFormatException {
105
break;
106
case ADDRESS:
107
try {
108
- InetAddress ia = InetAddress.getByAddress(value.getBytes());
109
- Logger.debug("Validating inetaddress: " + ia.toString());
+ mValue = InetAddress.getByName(value).getHostAddress();
110
} catch (UnknownHostException uhe) {
111
- throw new NumberFormatException("invalid IP address");
+ throw new NumberFormatException("invalid IP address: " + value);
112
}
113
- mValue = value;
114
115
case PORT:
116
int i = Integer.parseInt(value);
0 commit comments