This has been moved from a comment.
Seeing 1613f6a, checkIP has been changed to resolve #4:
function checkIP(intake: String) {
intake = intake.replace('::ffff:', '');
I fear the way this has been changed could be a problem when IPv6 becomes standard.
::ffff: signifies that this is an IPv4-mapped IPv6 address. 0.0.0.0 in IPv4 would look like ::ffff:0.0.0.0 in IPv6.
I think the proper thing to do here would be to adapt all IP's handled that are IPv4 to IPv4-mapped IPv6. The IP's can be treated the same way regardless of source and IP compatibility.
This has been moved from a comment.
Seeing 1613f6a,
checkIPhas been changed to resolve #4:I fear the way this has been changed could be a problem when IPv6 becomes standard.
::ffff:signifies that this is an IPv4-mapped IPv6 address.0.0.0.0in IPv4 would look like::ffff:0.0.0.0in IPv6.I think the proper thing to do here would be to adapt all IP's handled that are IPv4 to IPv4-mapped IPv6. The IP's can be treated the same way regardless of source and IP compatibility.