diff options
author | pierrepomes <pierre.pomes@interface-tech.com> | 2010-02-16 17:19:08 -0500 |
---|---|---|
committer | pierrepomes <pierre.pomes@interface-tech.com> | 2010-02-16 17:19:08 -0500 |
commit | d0f6649c8fc45e4261cbd651fbcda136205d29de (patch) | |
tree | b4800812684a12424f3cf01e2eaaade4a31d4976 /etc | |
parent | 870318b9a0eb81e79f40abe461e6259f67a62580 (diff) | |
download | pfsense-d0f6649c8fc45e4261cbd651fbcda136205d29de.zip pfsense-d0f6649c8fc45e4261cbd651fbcda136205d29de.tar.gz |
Add statistics for OpenVPN client instances
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/openvpn.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc index b41b551..a67d1bb 100644 --- a/etc/inc/openvpn.inc +++ b/etc/inc/openvpn.inc @@ -423,8 +423,11 @@ function openvpn_reconfigure($mode,& $settings) { } // The port we'll listen at - if ($settings['local_port']) + // If local_port is used, bing the management port + if ($settings['local_port']) { $conf .= "lport {$settings['local_port']}\n"; + $conf .= "management 127.0.0.1 {$settings['local_port']}\n"; + } else $conf .= "nobind\n"; |