mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fix ticket #1265
This commit is contained in:
parent
fb7a98e96f
commit
ee50604495
@ -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);
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user