diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-03-02 20:20:29 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-03-02 20:20:29 +0000 |
commit | 71602b14131760626a259fdcd0a8963b0755335d (patch) | |
tree | 73559254cef9593f0560fe3782af6f8ed5257464 /etc/inc/vpn.inc | |
parent | e8b82b8191356d50a2f210067d7a9f32976d4075 (diff) | |
download | pfsense-71602b14131760626a259fdcd0a8963b0755335d.zip pfsense-71602b14131760626a259fdcd0a8963b0755335d.tar.gz |
Only install listen directive when value is filled in.
Diffstat (limited to 'etc/inc/vpn.inc')
-rw-r--r-- | etc/inc/vpn.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index bc6fa21..f769f08 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -270,13 +270,15 @@ function vpn_ipsec_configure($ipchg = false) { } $interface_ip = $sasyncd['ip']; - $racoonconf .= <<<EOD + if($interface_ip <> "") { + $racoonconf .= <<<EOD listen { isakmp {$interface_ip} [500]; {$natt} } EOD; + } } $racoonconf .= "path pre_shared_key \"{$g['varetc_path']}/psk.txt\";\n\n"; |