You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python 3 has a module ipaddress for validating and working with IP address and network literals. Code to do what we want properly would be something like this:
(According to RFC 5375, under normal circumstances you're not supposed to use a network prefix longer than /64 with IPv6, so that is the proper equivalent of a /24 in IPv4.)
need to add statement to check if IP is IPv6 in order not to add the /24 prefix to it.
The text was updated successfully, but these errors were encountered: