diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-08-11 18:53:27 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-08-11 18:53:27 +0000 |
commit | 5aad0d39133517fa79d87351c28b4fb18ca671ce (patch) | |
tree | 01deabf50afae5766b84e8c61c02c48677c87865 /etc | |
parent | 1dc66631b65572925b7de8674f35b523b72ade26 (diff) | |
download | pfsense-5aad0d39133517fa79d87351c28b4fb18ca671ce.zip pfsense-5aad0d39133517fa79d87351c28b4fb18ca671ce.tar.gz |
Detect DNS names and correctly set
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/vpn.inc | 2 |
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'] <> "") |