Commit 0a339af9 authored by Franco Fichtner's avatar Franco Fichtner

rc: should delete that #1606

parent 43467751
...@@ -232,7 +232,7 @@ function add_gateway_to_config($interface, $gatewayip, $inet_type, $is_in_subnet ...@@ -232,7 +232,7 @@ function add_gateway_to_config($interface, $gatewayip, $inet_type, $is_in_subnet
} }
if (!$is_default && console_prompt_for_yn(sprintf('Do you want to use it as the default %s gateway?', $label_IPvX), $interface == 'wan' ? 'y' : 'n')) { if (!$is_default && console_prompt_for_yn(sprintf('Do you want to use it as the default %s gateway?', $label_IPvX), $interface == 'wan' ? 'y' : 'n')) {
foreach ($a_gateways as $item) { foreach ($a_gateways as &$item) {
if ($item['ipprotocol'] === $inet_type) { if ($item['ipprotocol'] === $inet_type) {
if (isset($item['defaultgw'])) { if (isset($item['defaultgw'])) {
unset($item['defaultgw']); unset($item['defaultgw']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment