mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-03 13:40:39 +01:00
nm-import-openvpn: remove old code for 'dev' option
This commit is contained in:
parent
79643ce28a
commit
3219bb3b76
1 changed files with 0 additions and 9 deletions
|
|
@ -153,14 +153,6 @@ function handle_comp_lzo(t, option, value)
|
|||
end
|
||||
t[option] = value[2]
|
||||
end
|
||||
--[[
|
||||
function handle_dev_old(t, option, value)
|
||||
if not value[2] then io.stderr:write(string.format("Warning: ignoring invalid option '%s'\n", value[1])) end
|
||||
if value[2] == "tap" then
|
||||
t[option] = "yes"
|
||||
end
|
||||
end
|
||||
--]]
|
||||
function handle_dev_type(t, option, value)
|
||||
if value[2] ~= "tun" and value[2] ~= "tap" then
|
||||
io.stderr:write(string.format("Warning: ignoring invalid option '%s'\n", value[1]))
|
||||
|
|
@ -293,7 +285,6 @@ vpn2nm = {
|
|||
["client"] = { nm_opt="client", func=set_bool, tbl={} },
|
||||
["comp-lzo"] = { nm_opt="comp-lzo", func=handle_comp_lzo, tbl=g_vpn_data },
|
||||
["float"] = { nm_opt="float", func=handle_yes, tbl=g_vpn_data },
|
||||
-- ["dev"] = { nm_opt="tap-dev", func=handle_dev_old },
|
||||
["dev"] = { nm_opt="dev", func=handle_generic, tbl=g_vpn_data },
|
||||
["dev-type"] = { nm_opt="dev-type", func=handle_dev_type, tbl=g_vpn_data },
|
||||
["fragment"] = { nm_opt="fragment-size", func=handle_generic, tbl=g_vpn_data },
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue