diff options
author | jim-p <jimp@pfsense.org> | 2011-05-17 16:06:11 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-05-17 16:06:11 -0400 |
commit | 882406aedba41f9871cde9228c79c0fba30488b8 (patch) | |
tree | c0e21916c4284e538b9ef4f4d8ca8cd9de0d5dd6 /config/openvpn-client-export/vpn_openvpn_export.php | |
parent | b407b3896374abdeb6bf488e83a1f7a1b5b39639 (diff) | |
download | pfsense-packages-882406aedba41f9871cde9228c79c0fba30488b8.tar.gz pfsense-packages-882406aedba41f9871cde9228c79c0fba30488b8.tar.bz2 pfsense-packages-882406aedba41f9871cde9228c79c0fba30488b8.zip |
Populate dyndns hostnames into OpenVPN client exporter hostname drop-down. Implements #1536
Diffstat (limited to 'config/openvpn-client-export/vpn_openvpn_export.php')
-rwxr-xr-x | config/openvpn-client-export/vpn_openvpn_export.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/config/openvpn-client-export/vpn_openvpn_export.php b/config/openvpn-client-export/vpn_openvpn_export.php index 6bfdd4e3..04945381 100755 --- a/config/openvpn-client-export/vpn_openvpn_export.php +++ b/config/openvpn-client-export/vpn_openvpn_export.php @@ -620,6 +620,11 @@ function useproxy_changed(obj) { <select name="useaddr" id="useaddr" class="formselect" onChange="useaddr_changed(this)"> <option value="serveraddr" >Interface IP Address</option> <option value="serverhostname" >Installation hostname</option> + <?php if (is_array($config['dyndnses']['dyndns'])): ?> + <?php foreach ($config['dyndnses']['dyndns'] as $ddns): ?> + <option value="<?php echo $ddns["host"] ?>">DynDNS: <?php echo $ddns["host"] ?></option> + <?php endforeach; ?> + <?php endif; ?> <option value="other">Other</option> </select> <br /> |