summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorpeter <peter@iMac-Peter.office.react.nl>2015-04-23 13:58:40 +0200
committerpeter <peter@iMac-Peter.office.react.nl>2015-04-23 13:58:40 +0200
commitc9be8d9f0f3cc2a94401320c2710586df0394fa9 (patch)
treeab6c5621d496b97b701ed53be1324c527794d0d8 /usr
parent0c9eb13b43265a0fdd295d7c8e474c326922845d (diff)
downloadpfsense-c9be8d9f0f3cc2a94401320c2710586df0394fa9.zip
pfsense-c9be8d9f0f3cc2a94401320c2710586df0394fa9.tar.gz
#126
Link_interface_to_bridge check also applied to wol_edit. Inverted link_interface_to_bridge check to be more clear.
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/services_wol.php2
-rw-r--r--usr/local/www/services_wol_edit.php3
2 files changed, 2 insertions, 3 deletions
diff --git a/usr/local/www/services_wol.php b/usr/local/www/services_wol.php
index 9931cf9..b05dcdd 100644
--- a/usr/local/www/services_wol.php
+++ b/usr/local/www/services_wol.php
@@ -139,7 +139,7 @@ $section = new Form_Section('Wake on LAN');
$section->addInput(new Form_Select(
'interface',
'Interface',
- (!link_interface_to_bridge($if) ? $if : null),
+ (link_interface_to_bridge($if) ? null : $if),
get_configured_interface_with_descr()
))->setHelp('Choose which interface the host to be woken up is connected to.');
diff --git a/usr/local/www/services_wol_edit.php b/usr/local/www/services_wol_edit.php
index 073c54a..9c1aa0e 100644
--- a/usr/local/www/services_wol_edit.php
+++ b/usr/local/www/services_wol_edit.php
@@ -134,11 +134,10 @@ if (isset($id) && $a_wol[$id]) {
$section = new Form_Section('Edit WOL entry');
-// How do we incorporate: if (!link_interface_to_bridge($iface) && $iface == $if) echo "selected=\"selected\""
$section->addInput(new Form_Select(
'interface',
'Interface',
- $pconfig['interface'],
+ (link_interface_to_bridge($pconfig['interface']) ? null : $pconfig['interface']),
get_configured_interface_with_descr()
))->setHelp('Choose which interface this host is connected to.');
OpenPOWER on IntegriCloud