Skip to content

Commit

Permalink
[fix] Fixed comp-lzo option for legacy OpenVPN in OpenWisp1 backend
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier committed Feb 26, 2021
1 parent 10efd7e commit cbb03fd
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions netjsonconfig/backends/openwisp/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,20 @@
}
},
)

schema['definitions']['tunnel']['properties']['comp_lzo']['enum'] = [
'adaptive',
'1',
'yes',
'0',
'no',
]
schema['definitions']['tunnel']['properties']['comp_lzo']['options'] = {
"enum_titles": [
"adaptive",
"enabled (legacy, OpenVPN <= 2.0)",
"yes (OpenVPN > 2.0)",
"disabled (legacy, OpenVPN <= 2.0)",
"no (OpenVPN > 2.0)",
]
}

0 comments on commit cbb03fd

Please sign in to comment.