Returns the IPv4 of an interface or "0.0.0.0" if not available
(iff)
| 76 | |
| 77 | |
| 78 | def get_if_addr(iff): |
| 79 | # type: (_GlobInterfaceType) -> str |
| 80 | """ |
| 81 | Returns the IPv4 of an interface or "0.0.0.0" if not available |
| 82 | """ |
| 83 | return inet_ntop(socket.AF_INET, get_if_raw_addr(iff)) # noqa: F405 |
| 84 | |
| 85 | |
| 86 | def get_if_hwaddr(iff): |
no test coverage detected