locutusjs/locutus

php/network/long2ip is missing the first & 0xFF

mkg20001 opened this issue · 2 comments

  • Have you checked the guidelines in our Contributing document?

Description

In src/php/network/long2ip.js the first " & 0xFF" is missing.

-  return [ip >>> 24, ip >>> 16 & 0xFF, ip >>> 8 & 0xFF, ip & 0xFF].join('.')
+  return [ip >>> 24 & 0xFF, ip >>> 16 & 0xFF, ip >>> 8 & 0xFF, ip & 0xFF].join('.')

@kvz this issue should be closed.

kvz commented

@argosback made you a collaborator so you can do this yourself from now on 😄