mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-01-23 02:14:26 +00:00
remove python(2) call
This commit is contained in:
parent
4d92f58648
commit
faa5fc0e1a
1 changed files with 0 additions and 2 deletions
|
|
@ -195,8 +195,6 @@ check_spamhaus_listing() {
|
|||
local expanded_ipv6
|
||||
if command -v python3 >/dev/null 2>&1; then
|
||||
expanded_ipv6=$(python3 -c "import ipaddress; print(ipaddress.IPv6Address('$ipv6_address').exploded)" 2>/dev/null)
|
||||
elif command -v python >/dev/null 2>&1; then
|
||||
expanded_ipv6=$(python -c "import ipaddress; print(ipaddress.IPv6Address('$ipv6_address').exploded)" 2>/dev/null)
|
||||
else
|
||||
log_warning "Python not available for IPv6 address expansion, skipping Spamhaus check"
|
||||
return 0 # Treat as not listed if we can't check
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue