Skip to content
Snippets Groups Projects
Commit c0c3fa27 authored by Manuel Franceschini's avatar Manuel Franceschini
Browse files

Introduce utils.IsValidIP{4,6}()


This patch introduces functions to check for valid IPv4 and IPv6
addresses and converts IsValidIP() to return True if it is either a IPv4
or a IPv6 address.

For now we do not change the functional behavior and replace IsValidIP
with IsValidIP4. This might change in the future.

Signed-off-by: default avatarManuel Franceschini <livewire@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 158206e0
No related branches found
Tags v2.0.2
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment