This commit is contained in:
Scott Ullrich 2007-03-14 19:08:47 +00:00
parent fb7a98e96f
commit ee50604495

View File

@ -218,7 +218,6 @@ daemon
keepalive 10 60
ping-timer-rem
persist-tun
lport $lport
persist-key
dev tun
proto $proto
@ -259,6 +258,7 @@ EOD;
// The port we'll listen at
$openvpn_conf .= "lport {$settings['local_port']}\n";
}
else { // $mode == client
@ -267,6 +267,11 @@ EOD;
if ($settings['auth_method'] == 'pki') $openvpn_conf .= "client\n";
if ($settings['use_dynamicport']) $openvpn_conf .= "nobind\n";
else
// The port we'll listen at
$openvpn_conf .= "lport {$lport}\n";
if (!empty($settings['interface_ip'])) {
// Configure the IPs according to the address pool
list($ip, $mask) = explode('/', $settings['interface_ip']);
@ -451,4 +456,4 @@ function openvpn_print_javascript2() {
EOD;
print($javascript);
}
?>
?>