/opt/imunify360/venv/lib/python3.11/site-packages/imav/patchman/__pycache__
Edit: /opt/imunify360/venv/lib/python3.11/site-packages/imav/patchman/__pycache__/utils.cpython-311.pyc (2774B)
§
ž-œ Ê€ã óD — d Z ddlZddlZdZd„ Zdedefd„Zdedefd „ZdS )
u
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License,
or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.Â
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see
.
Copyright © 2019 Cloud Linux Software Inc.
This software is also available under ImunifyAV commercial license,
see
é Nz139.162.216.201c óF — t j t j t j ¦ « } | d¦ « | t
df¦ « | ¦ « d | ¦ « S # | ¦ « w xY w)Né
é r )ÚsocketÚAF_INETÚ
SOCK_DGRAMÚ
settimeoutÚconnectÚCLIENT_PORTAL_IPÚgetsocknameÚclose)Úss úH/opt/imunify360/venv/lib/python3.11/site-packages/imav/patchman/utils.pyÚget_current_ipr sx € ÝŒ
•f”n¥fÔ&7Ñ8Ô8€A؇L‚L�ÑÔÐðØ � Š Õ# QÐ'Ñ(Ô(Ð(Ø�}Š}‰Œ˜qÔ!à �Љ Œ ˆ ˆ øˆ�Љ Œ ˆ ˆ øøøs Á 5B
Â
B Úipv4Úreturnc ój ‡— t j | ¦ « Šg d¢}t ˆfd„|D ¦ « ¦ « S )N)z
10.0.0.0/8z
172.16.0.0/12z192.168.0.0/16c 3 óD •K — | ]}‰t j |¦ « v V — Œd S )N)Ú ipaddressÚ
ip_network)Ú.0ÚnetÚips €r ú z is_private_ip..) s3 øè è € ÐCÐC°3ˆr•YÔ)¨#Ñ.Ô.Ð.ÐCÐCÐCÐCÐCÐCó )r Ú
ip_addressÚany)r Únetworksr s @r Ú
is_private_ipr &