diff options
author | jim-p <jimp@pfsense.org> | 2013-08-12 12:33:46 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2013-08-12 12:33:46 -0400 |
commit | afa76eff3d145d089e11b93d95a06d27f3249efa (patch) | |
tree | 62377a026d77c6381e05dd6561463396e7a0a457 /etc/inc/pkg-utils.inc | |
parent | a2dc7392fc3e3a2cbb6584dfcab8e02d26598000 (diff) | |
download | pfsense-afa76eff3d145d089e11b93d95a06d27f3249efa.zip pfsense-afa76eff3d145d089e11b93d95a06d27f3249efa.tar.gz |
Fix interface selections on UPnP to show the customized descriptions entered by the user. While here, add an external interface selection knob. Fixes #3141
Diffstat (limited to 'etc/inc/pkg-utils.inc')
-rw-r--r-- | etc/inc/pkg-utils.inc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc index 431d675..bf99a64 100644 --- a/etc/inc/pkg-utils.inc +++ b/etc/inc/pkg-utils.inc @@ -1348,4 +1348,19 @@ function stop_packages() { } } +function get_pkg_interfaces_select_source($include_localhost=false) { + $interfaces = get_configured_interface_with_descr(); + $ssifs = array(); + foreach ($interfaces as $iface => $ifacename) { + $tmp["name"] = $ifacename; + $tmp["value"] = $iface; + $ssifs[] = $tmp; + } + if ($include_localhost) { + $tmp["name"] = "Localhost"; + $tmp["value"] = "lo0"; + $ssifs[] = $tmp; + } + return $ssifs; +} ?>
\ No newline at end of file |