@sn0w@cofe.rocks the library syuilo chose to use is private-ip which after looking into it looks like a huge mess. it imports a bunch of weird dependencies (there is a dev dependency on a nodejs implementatin of rm -rf? 🥴)
the best part is that it imports a library that it uses for IP address parsing and normalizing. but this library can already tell you whether the address is in a special reserved range.
so really what it would need to do to determine if an IP is "private" is to check if its in a weird reserved range or not. but instead it normalizes the IP and then puts it through all kind of funny regexes :neofox_googly_shocked: another part of the yac to be shaved i guess
johann150@genau.qwertqwefsday.eu's status on Wednesday, 24-Jan-2024 05:45:04 JST
-
Embed this notice
johann150@genau.qwertqwefsday.eu's status on Wednesday, 24-Jan-2024 05:45:04 JST Johann150