add doc for network.private_ipv4s

This commit is contained in:
Prodesire 2018-02-08 21:34:06 +08:00
parent a9b9a225b8
commit a2d89ac341
1 changed files with 5 additions and 0 deletions

View File

@ -13,6 +13,11 @@ Network
'255.255.255.0'
.. py:data:: pydu.network.private_ipv4s
A list of private ipv4 addresses. Each item is a tuple of
(ipv4 address, mask).
.. py:function:: pydu.network.is_ipv4(ip)
Judge whether the given ``ip`` is IPV4 address.