summaryrefslogtreecommitdiffstats
path: root/usr/local/www/pkg_edit.php
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-10-23 21:51:53 +0000
committerErmal Luçi <eri@pfsense.org>2008-10-23 21:51:53 +0000
commit85a5da131ccbbb6fe335da3ca7d67cc0c3f60aa0 (patch)
tree5599823fbfad08f8e11831c28d9e6caedd41bd1a /usr/local/www/pkg_edit.php
parentcb00b7342f39a96ddbffd3a53965c780359e2d3b (diff)
downloadpfsense-85a5da131ccbbb6fe335da3ca7d67cc0c3f60aa0.zip
pfsense-85a5da131ccbbb6fe335da3ca7d67cc0c3f60aa0.tar.gz
* Rename get_current_wan_address to get_interface_ip
* Rename get_real_wan_interface to get_real_interface * Simplify get_interface_ip by using find_interface_ip which should help in speed to since its using caching. Pointed by billm@ * Cleanup some code when passing or remove some unused one.
Diffstat (limited to 'usr/local/www/pkg_edit.php')
-rwxr-xr-xusr/local/www/pkg_edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/pkg_edit.php b/usr/local/www/pkg_edit.php
index caf2044..67a4382 100755
--- a/usr/local/www/pkg_edit.php
+++ b/usr/local/www/pkg_edit.php
@@ -643,7 +643,7 @@ function fixup_string($string) {
$newstring = str_replace("\$myurl", $myurl, $string);
$string = $newstring;
// fixup #2: $wanip
- $curwanip = get_current_wan_address();
+ $curwanip = get_interface_ip();
$newstring = str_replace("\$wanip", $curwanip, $string);
$string = $newstring;
// fixup #3: $lanip
OpenPOWER on IntegriCloud