diff options
author | Jiří Klimeš <jklimes@redhat.com> | 2015-08-19 10:58:29 +0200 |
---|---|---|
committer | Jiří Klimeš <jklimes@redhat.com> | 2015-08-19 10:58:29 +0200 |
commit | a646870684509e160486e77e9aaa82c0f3f43421 (patch) | |
tree | ccbad6a4b4aed6a213928cd9f442405579eb251c /contrib | |
parent | 4a627929c06d197cc219ea6fd039c85bd7506bdb (diff) | |
download | NetworkManager-a646870684509e160486e77e9aaa82c0f3f43421.tar.gz |
nm-import-openvpn: fix importing OpenVPN configuration with 'tls-client'
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/scripts/nm-import-openvpn | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/scripts/nm-import-openvpn b/contrib/scripts/nm-import-openvpn index 8770349ebd..c3730be0ee 100755 --- a/contrib/scripts/nm-import-openvpn +++ b/contrib/scripts/nm-import-openvpn @@ -74,7 +74,7 @@ end -- Functions for VPN options translation -- ------------------------------------------- function set_bool(t, option, value) - g_switches[value[1]] = true + g_switches[option] = true end function handle_yes(t, option, value) t[option] = "yes" @@ -195,7 +195,7 @@ vpn2nm = { ["reneg-sec"] = { nm_opt="reneg-seconds", func=handle_generic }, ["secret"] = { nm_opt={"static-key", "static-key-direction"}, func=handle_secret }, ["tls-auth"] = { nm_opt={"ta", "ta-dir"}, func=handle_secret }, - ["tls-client"] = { nm_opt="tls-client=", func=set_bool }, + ["tls-client"] = { nm_opt="client", func=set_bool }, ["tls-remote"] = { nm_opt="tls-remote", func=handle_tls_remote }, ["remote-cert-tls"] = { nm_opt="remote-cert-tls", func=handle_remote_cert_tls }, ["tun-mtu"] = { nm_opt="tunnel-mtu", func=handle_generic } |