From 41c649df506ae9edc42a308d237751c27244c95d Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 16 Jul 2005 18:31:41 +0000 Subject: Add Dynamic DNS support to IPSEC. --- etc/inc/vpn.inc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'etc/inc/vpn.inc') diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index dc9d82e..11f7689 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -276,6 +276,9 @@ EOD; } else if (isset($tunnel['p1']['myident']['ufqdn'])) { $myidentt = "user_fqdn"; $myident = $tunnel['p1']['myident']['ufqdn']; + } else if (isset($tunnel['p1']['myident']['dyn_dns'])) { + $myidentt = "dyn_dns"; + $myident = gethostbyname($tunnel['p1']['myident']['dyn_dns']); } if (isset($tunnel['p1']['authentication_method'])) { -- cgit v1.1