mirror of
https://gitlab.com/shorewall/code.git
synced 2025-08-19 05:01:47 +02:00
Fix 'findgw'
This commit is contained in:
@@ -811,7 +811,7 @@ detect_dynamic_gateway() { # $1 = interface
|
||||
|
||||
gateway=$(run_findgw_exit $1);
|
||||
|
||||
if [ -n "$gateway" ]; then
|
||||
if [ -z "$gateway" ]; then
|
||||
gateway=$( find_peer $($IP addr list $interface ) )
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user