Skip to content
Snippets Groups Projects
Commit 2931bdc4 authored by Randy Sommerfeld's avatar Randy Sommerfeld
Browse files

Fix integer-to-IP conversion

parent b1efd07e
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #2334 passed
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment