diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-12-17 12:48:08 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-12-17 12:48:08 +0100 |
commit | 8d5c633385407cfe1fb7a6f7b0f2243ab7deb3da (patch) | |
tree | 5a9cee4c457a7e50b0cda91a684e6e0511d555cc /src | |
parent | 526357566f2a9cab5a2fc45c4af53cfa88b2666b (diff) | |
download | vyos-1x-8d5c633385407cfe1fb7a6f7b0f2243ab7deb3da.tar.gz vyos-1x-8d5c633385407cfe1fb7a6f7b0f2243ab7deb3da.zip |
sstp: T4384: remote server is mandatory in client mode
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/interfaces-sstpc.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/conf_mode/interfaces-sstpc.py b/src/conf_mode/interfaces-sstpc.py index 6b8094c51..b5cc4cf4e 100755 --- a/src/conf_mode/interfaces-sstpc.py +++ b/src/conf_mode/interfaces-sstpc.py @@ -70,7 +70,10 @@ def verify(sstpc): verify_authentication(sstpc) verify_vrf(sstpc) - if dict_search('ssl.ca_certificate', sstpc) == None: + if not dict_search('server', sstpc): + raise ConfigError('Remote SSTP server must be specified!') + + if not dict_search('ssl.ca_certificate', sstpc): raise ConfigError('Missing mandatory CA certificate!') return None |