Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
2931bdc4
Commit
2931bdc4
authored
May 31, 2021
by
Randy Sommerfeld
Browse files
Fix integer-to-IP conversion
parent
b1efd07e
Pipeline
#2334
passed with stage
in 8 minutes and 51 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
exec/load/irclib.js
exec/load/irclib.js
+4
-1
No files found.
exec/load/irclib.js
View file @
2931bdc4
...
...
@@ -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 */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment