summaryrefslogtreecommitdiffstats
path: root/etc/inc/vpn.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-08-11 18:53:27 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-08-11 18:53:27 +0000
commit5aad0d39133517fa79d87351c28b4fb18ca671ce (patch)
tree01deabf50afae5766b84e8c61c02c48677c87865 /etc/inc/vpn.inc
parent1dc66631b65572925b7de8674f35b523b72ade26 (diff)
downloadpfsense-5aad0d39133517fa79d87351c28b4fb18ca671ce.zip
pfsense-5aad0d39133517fa79d87351c28b4fb18ca671ce.tar.gz
Detect DNS names and correctly set
Diffstat (limited to 'etc/inc/vpn.inc')
-rw-r--r--etc/inc/vpn.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index 154c810..3d8ff50 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -176,6 +176,8 @@ function vpn_ipsec_configure($ipchg = false) {
$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