From 264f4423ba765da6946c362b38b1dcc30a6f7f8a Mon Sep 17 00:00:00 2001 From: PiBa-NL Date: Sat, 23 Jun 2018 16:11:00 +0200 Subject: [PATCH] routing, when adding a new gateway and setting it as the default actually allow that to happen by indicating the proper ipprotocol for the gateway to set it for as a default --- src/usr/local/www/interfaces.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/usr/local/www/interfaces.php b/src/usr/local/www/interfaces.php index 7ff2ace364..6e389e30d8 100755 --- a/src/usr/local/www/interfaces.php +++ b/src/usr/local/www/interfaces.php @@ -1009,6 +1009,7 @@ if ($_POST['apply']) { $gateway_settings4['gateway'] = $_POST['gatewayip4']; $gateway_settings4['descr'] = $_POST['gatewaydescr4']; $gateway_settings4['defaultgw'] = $_POST['defaultgw4']; + $gateway_settings4['ipprotocol'] = 'inet'; $gw_input_errors = validate_gateway($gateway_settings4, '', $_POST['ipaddr'], $_POST['subnet']); foreach ($gw_input_errors as $input_error_text) { $input_errors[] = $input_error_text; @@ -1024,6 +1025,7 @@ if ($_POST['apply']) { $gateway_settings6['gateway'] = $_POST['gatewayip6']; $gateway_settings6['descr'] = $_POST['gatewaydescr6']; $gateway_settings6['defaultgw'] = $_POST['defaultgw6']; + $gateway_settings6['ipprotocol'] = 'inet6'; $gw_input_errors = validate_gateway($gateway_settings6, '', $_POST['ipaddrv6'], $_POST['subnetv6']); foreach ($gw_input_errors as $input_error_text) { $input_errors[] = $input_error_text;