5 Commits

Author SHA1 Message Date
Steven Allen
0425819f0e use the new multiaddr utilities in IsPublicAddr/IsPrivateAddr
This now means that addresses must *start* with the an IP address, we won't just
pull one out of the middle.
2018-10-18 13:59:24 +01:00
vyzo
7b43167897 fix typo 2018-10-18 13:43:48 +01:00
vyzo
c2b139aab4 test all known unroutable address ranges in IsPublicAddr 2018-10-18 13:43:48 +01:00
vyzo
2945cfc2e6 add IsPrivateAddr 2018-10-18 13:43:48 +01:00
vyzo
984c8ac58b private networks and IsPublicAddr 2018-10-18 13:43:48 +01:00