summaryrefslogtreecommitdiffstats
path: root/etc/inc/vpn.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-08-12 15:09:13 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-08-12 15:09:13 +0000
commit8ee9b271e7defb98616167b6063dafdb4648a58d (patch)
treecf2b17893159910abbe99a01f23ab347407a5537 /etc/inc/vpn.inc
parent067857c5e6e43748c7b9433983e4f425ba44e922 (diff)
downloadpfsense-8ee9b271e7defb98616167b6063dafdb4648a58d.zip
pfsense-8ee9b271e7defb98616167b6063dafdb4648a58d.tar.gz
Check to see if item is dynamic dns a little better
Diffstat (limited to 'etc/inc/vpn.inc')
-rw-r--r--etc/inc/vpn.inc8
1 files changed, 6 insertions, 2 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index 3d8ff50..03de93c 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -172,12 +172,16 @@ function vpn_ipsec_configure($ipchg = false) {
vpn_localnet_determine($tunnel['local-subnet'], $sa, $sn);
+ if(is_domain($tunnel['remote-gateway'])) {
+ $tmp = gethostbyname($tunnel['remote-gateway']);
+ if($tmp)
+ $tunnel['remote-gateway'] = $tmp;
+ }
+
if(isset($tunnel['creategif'])) {
$number_of_gifs = find_last_gif_device();
$number_of_gifs++;
$curwanip = get_current_wan_address();
- if(is_domain($tunnel['remote-gateway']))
- $tunnel['remote-gateway'] = gethostbyname($tunnel['remote-gateway']);
if($config['installedpackages']['sasyncd']['config'] <> "")
foreach($config['installedpackages']['sasyncd']['config'] as $sasyncd) {
if($sasyncd['ip'] <> "")
OpenPOWER on IntegriCloud