From fcf4e8cd21a4a0f6b0cc8456884069344198d8fc Mon Sep 17 00:00:00 2001 From: Erik Fonnesbeck Date: Thu, 6 May 2010 04:17:47 -0600 Subject: Fix upgrade code for port forwards with "Interface address" set on external address. Ticket #561 --- etc/inc/upgrade_config.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/inc/upgrade_config.inc b/etc/inc/upgrade_config.inc index 1988ad2..c217341 100644 --- a/etc/inc/upgrade_config.inc +++ b/etc/inc/upgrade_config.inc @@ -1892,7 +1892,8 @@ function upgrade_061_to_062() { ); if (empty($natent['destination']['address'])) { - $natent['destination']['address'] = $natent['interface'] . 'ip'; + unset($natent['destination']['address']); + $natent['destination']['network'] = $natent['interface'] . 'ip'; } else if ($natent['destination']['address'] == 'any') { unset($natent['destination']['address']); $natent['destination']['any'] = true; -- cgit v1.1