diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-12-04 11:04:28 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-12-04 11:04:28 +0000 |
commit | 8572e3d6e0d782a1474e97149a7f0c81edfc41da (patch) | |
tree | f9cf4541ca9eca589879333a660cf8583c8848cf /src/conf_mode | |
parent | 1804f1cb1a9026fe07b49f5d65460875423534bc (diff) | |
download | vyos-1x-8572e3d6e0d782a1474e97149a7f0c81edfc41da.tar.gz vyos-1x-8572e3d6e0d782a1474e97149a7f0c81edfc41da.zip |
T4848: Fix for default route vpn openconnect
ocserv template expects list of routes but gets str "default"
it cause wrong routes like:
route = d
route = e
route = f
route = a
route = u
route = l
route = t
Fix it
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-x | src/conf_mode/vpn_openconnect.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/vpn_openconnect.py b/src/conf_mode/vpn_openconnect.py index c050b796b..7c86356e9 100755 --- a/src/conf_mode/vpn_openconnect.py +++ b/src/conf_mode/vpn_openconnect.py @@ -157,7 +157,7 @@ def verify(ocserv): ocserv["network_settings"]["push_route"].remove("0.0.0.0/0") ocserv["network_settings"]["push_route"].append("default") else: - ocserv["network_settings"]["push_route"] = "default" + ocserv["network_settings"]["push_route"] = ["default"] else: raise ConfigError('openconnect network settings required') |