fix(seed/relay-mail-client/funcs/relay_mail.py): do not raise if ip_smtp is None

This commit is contained in:
egarette@silique.fr 2023-07-31 16:46:55 +02:00
parent c9fa6cf0e5
commit b9552cd7fa

View file

@ -3,6 +3,8 @@ from rougail.utils import normalize_family as _normalize_family
def get_local_smtp_info(ip_smtp, infos, network_eth, normalize=False):
if ip_smtp is None:
return
ip_smtp_o = _ip_address(ip_smtp)
for idx, net in enumerate(network_eth):
if ip_smtp_o in _ip_network(net):