From d18e6c091ad3e4621eea8db91a568e7e9e23f7c2 Mon Sep 17 00:00:00 2001 From: v1s1t0r1sh3r3 Date: Mon, 22 Jan 2024 17:55:45 +0100 Subject: [PATCH] Fixed Docker routing problem --- CHANGELOG.md | 1 + airgeddon.sh | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b38dd439f..726cc95f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - Add WPS version to network selection menu for WPS networks - Reordered networks on network selection menus (standard and WPS), now networks with the strongest received signal will be placed last to avoid scrolling - Fixed small bug on Evil Twin captive portal attack for passwords containing more than one space char + - Fixed Docker routing problem ### 11.21 - Chinese language translation added (Thank you to "zcbxx") diff --git a/airgeddon.sh b/airgeddon.sh index 5fa09ee2b..9ae16105d 100755 --- a/airgeddon.sh +++ b/airgeddon.sh @@ -14472,9 +14472,11 @@ function iptables_nftables_detection() { fi if [ "${iptables_nftables}" -eq 0 ]; then - if hash iptables-legacy 2> /dev/null; then + if hash iptables-legacy 2> /dev/null && ! hash iptables 2> /dev/null; then iptables_cmd="iptables-legacy" - else + elif hash iptables 2> /dev/null && ! hash iptables-legacy 2> /dev/null; then + iptables_cmd="iptables" + elif hash iptables 2> /dev/null && hash iptables-legacy 2> /dev/null; then iptables_cmd="iptables" fi else