Commit 2931bdc4 authored by Randy Sommerfeld's avatar Randy Sommerfeld
Browse files

Fix integer-to-IP conversion

parent b1efd07e
Pipeline #2334 passed with stage
in 8 minutes and 51 seconds
......@@ -379,7 +379,10 @@ function ip_to_int(ip) {
quads = ip.split(".");
return quads[0] * 0x1000000 + quads[1] * 0x10000 + quads[2] * 0x100 + quads[3];
return parseInt(quads[0]) * 0x1000000
+ parseInt(quads[1]) * 0x10000
+ parseInt(quads[2]) * 0x100
+ parseInt(quads[3]);
}
/* Convert an integer to an IP address, i.e. for receiving CTCP's */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment