summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_routes_edit.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-02-07 09:43:57 +0000
committerErmal <eri@pfsense.org>2013-02-07 09:46:44 +0000
commit88cc00dbf56c7b900a6258a47f7f07329c2c19c8 (patch)
tree5e5867aed7f32d77ba3b48054a9cd8cfd80273dd /usr/local/www/system_routes_edit.php
parentd7a1532bbf016674514daa01a8bbec20848f8870 (diff)
downloadpfsense-88cc00dbf56c7b900a6258a47f7f07329c2c19c8.zip
pfsense-88cc00dbf56c7b900a6258a47f7f07329c2c19c8.tar.gz
Make gen_subnetv6 return a compressed form IPv6 address/net representation. This removes some issues reported during Ticket #2746 and solve the issue on some cases
Diffstat (limited to 'usr/local/www/system_routes_edit.php')
-rwxr-xr-xusr/local/www/system_routes_edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/system_routes_edit.php b/usr/local/www/system_routes_edit.php
index 98e264b..1a27e88 100755
--- a/usr/local/www/system_routes_edit.php
+++ b/usr/local/www/system_routes_edit.php
@@ -110,7 +110,7 @@ if ($_POST) {
$current_targets = get_staticroutes(true);
$new_targets = array();
if(is_ipaddrv6($_POST['network'])) {
- $osn = Net_IPv6::compress(gen_subnetv6($_POST['network'], $_POST['network_subnet'])) . "/" . $_POST['network_subnet'];
+ $osn = gen_subnetv6($_POST['network'], $_POST['network_subnet']) . "/" . $_POST['network_subnet'];
$new_targets[] = $osn;
}
if (is_ipaddrv4($_POST['network'])) {
OpenPOWER on IntegriCloud