Skip to content

Commit

Permalink
system: add 'if' to message in case of mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed May 10, 2023
1 parent 5f79844 commit 4885514
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/etc/inc/system.inc
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ function system_routing_configure($verbose = false, $interface = null, $monitor

if (isset($config['system']['gw_switch_default']) || empty($interface) || $interface == $gateway['interface']) {
if (empty($ifdetails[$gateway['if']][$type][0])) {
log_msg("ROUTING: refusing to set {$ipproto} gateway on addressless {$gateway['interface']}", LOG_ERR);
log_msg("ROUTING: refusing to set {$ipproto} gateway on addressless {$gateway['interface']}({$gateway['if']})", LOG_ERR);
continue;
}

Expand Down

0 comments on commit 4885514

Please sign in to comment.