Commit 89ac5ebc authored by Tom Niget's avatar Tom Niget Committed by Julien Muchembled

vpn: mark deprecated flag

parent 18be0958
...@@ -20,6 +20,8 @@ def openvpn(iface, encrypt, *args, **kw): ...@@ -20,6 +20,8 @@ def openvpn(iface, encrypt, *args, **kw):
if ovpn_log: if ovpn_log:
args += '--log-append', os.path.join(ovpn_log, '%s.log' % iface), args += '--log-append', os.path.join(ovpn_log, '%s.log' % iface),
if not encrypt: if not encrypt:
# TODO: --ncp-disable was deprecated in OpenVPN 2.5 and removed in 2.6
# and is no longer necessary in those versions.
args += '--cipher', 'none', '--ncp-disable' args += '--cipher', 'none', '--ncp-disable'
logging.debug('%r', args) logging.debug('%r', args)
return utils.Popen(args, **kw) return utils.Popen(args, **kw)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment