/opt/imunify360/venv/lib/python3.11/site-packages/clcommon/lib
NameSizeModeActions
__pycache__/-0755rm
cledition.py128300644editdlrm
cmt_utils.py42660644editdlrm
config.py8500644editdlrm
consts.py10110644editdlrm
jwt_token.py22710644editdlrm
mysql_governor_lib.py348040644editdlrm
network.py4520644editdlrm
whmapi_lib.py64500644editdlrm
__init__.py4390644editdlrm
Edit: /opt/imunify360/venv/lib/python3.11/site-packages/clcommon/lib/network.py (452B)
# coding=utf-8 # # Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2020 All Rights Reserved # # Licensed under CLOUD LINUX LICENSE AGREEMENT # http://cloudlinux.com/docs/LICENCE.TXT # import socket def get_hostname(): try: return socket.gethostname() except Exception: return None def get_ip_addr(hostname): try: return socket.gethostbyname(hostname) except socket.error: return None