Skip to content

Commit cbb03fd

Browse files
committed
[fix] Fixed comp-lzo option for legacy OpenVPN in OpenWisp1 backend
1 parent 10efd7e commit cbb03fd

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

netjsonconfig/backends/openwisp/schema.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,20 @@
4242
}
4343
},
4444
)
45+
46+
schema['definitions']['tunnel']['properties']['comp_lzo']['enum'] = [
47+
'adaptive',
48+
'1',
49+
'yes',
50+
'0',
51+
'no',
52+
]
53+
schema['definitions']['tunnel']['properties']['comp_lzo']['options'] = {
54+
"enum_titles": [
55+
"adaptive",
56+
"enabled (legacy, OpenVPN <= 2.0)",
57+
"yes (OpenVPN > 2.0)",
58+
"disabled (legacy, OpenVPN <= 2.0)",
59+
"no (OpenVPN > 2.0)",
60+
]
61+
}

0 commit comments

Comments
 (0)