diff options
author | Phil Davis <phil.davis@inf.org> | 2014-04-09 17:58:10 -0700 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2014-04-09 17:58:10 -0700 |
commit | f4065455b05ef718c09b4851212b79e7993baaa5 (patch) | |
tree | 8bbbb9b2c93aaa3c8fa1cefb183c7cb5ba2a805b | |
parent | d22169cfd68a26c04ca6d1aa997575f1b3e4cc80 (diff) | |
download | pfsense-f4065455b05ef718c09b4851212b79e7993baaa5.zip pfsense-f4065455b05ef718c09b4851212b79e7993baaa5.tar.gz |
List GWGs in Interface to send update from
Back-port of this fix done in master https://github.com/pfsense/pfsense/commit/31300a95f71b14dcb98c139388205223a36e8c8b and https://github.com/pfsense/pfsense/commit/8f56dd279432c4fd5a027310622e2650822e4651
Unfortunately this never got back-merged to 2.1 branch. A user on the forum noticed the issue again on 2.1.1 - https://forum.pfsense.org/index.php?topic=74922.0
I am submitting this so that when the next security issue happens, and there is 2.1.n+1 then this little fix will also happen automagically. I wonder what other fixes are in master that missed being back-ported to 2.1 branch.
-rw-r--r-- | usr/local/www/services_dyndns_edit.php | 30 |
1 files changed, 23 insertions, 7 deletions
diff --git a/usr/local/www/services_dyndns_edit.php b/usr/local/www/services_dyndns_edit.php index adc6710..abb91ed 100644 --- a/usr/local/www/services_dyndns_edit.php +++ b/usr/local/www/services_dyndns_edit.php @@ -248,6 +248,7 @@ function _onTypeChange(type){ echo "selected"; echo ">{$ifdesc}</option>\n"; } + unset($iflist); $grouplist = return_gateway_groups_array(); foreach ($grouplist as $name => $group) { echo "<option value=\"{$name}\""; @@ -255,19 +256,34 @@ function _onTypeChange(type){ echo "selected"; echo ">GW Group {$name}</option>\n"; } + unset($grouplist); ?> </select> </td> </td> </tr> <tr id="_requestiftr"> - <td width="22%" valign="top" class="vncellreq"><?=gettext("Interface to send update from");?></td> - <td width="78%" class="vtable"> - <select name="requestif" class="formselect" id="requestif"> - <?php $iflist = get_configured_interface_with_descr(); - foreach ($iflist as $if => $ifdesc):?> - <option value="<?=$if;?>" <?php if ($pconfig['requestif'] == $if) echo "selected";?>><?=$ifdesc;?></option> - <?php endforeach; ?> + <td width="22%" valign="top" class="vncellreq"><?=gettext("Interface to send update from");?></td> + <td width="78%" class="vtable"> + <select name="requestif" class="formselect" id="requestif"> + <?php + $iflist = get_configured_interface_with_descr(); + foreach ($iflist as $if => $ifdesc) { + echo "<option value=\"{$if}\""; + if ($pconfig['requestif'] == $if) + echo "selected"; + echo ">{$ifdesc}</option>\n"; + } + unset($iflist); + $grouplist = return_gateway_groups_array(); + foreach ($grouplist as $name => $group) { + echo "<option value=\"{$name}\""; + if ($pconfig['requestif'] == $name) + echo "selected"; + echo ">GW Group {$name}</option>\n"; + } + unset($grouplist); + ?> </select> <br/><?= gettext("Note: This is almost always the same as the Interface to Monitor.");?> </td> |