summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2023-03-31 23:57:29 +0300
committerGitHub <noreply@github.com>2023-03-31 23:57:29 +0300
commit960b635f98b3fcad3d8890e6b7651519a85dabeb (patch)
tree2789494d62355cdd0648a0084b7a97aa70d8bea1 /src/conf_mode
parent11ace86f58261908f1ab15366b73aeddb14745c9 (diff)
parent11b1d043310833447ddeea3b68fba2a1d1f5799d (diff)
downloadvyos-1x-960b635f98b3fcad3d8890e6b7651519a85dabeb.tar.gz
vyos-1x-960b635f98b3fcad3d8890e6b7651519a85dabeb.zip
Merge pull request #1920 from jestabro/https-allow-client
http-api: T5126: allow restricting client IP address
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/https.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/conf_mode/https.py b/src/conf_mode/https.py
index ce5e63928..b0c38e8d3 100755
--- a/src/conf_mode/https.py
+++ b/src/conf_mode/https.py
@@ -159,6 +159,8 @@ def generate(https):
server_block['port'] = data.get('listen-port', '443')
name = data.get('server-name', ['_'])
server_block['name'] = name
+ allow_client = data.get('allow-client', {})
+ server_block['allow_client'] = allow_client.get('address', [])
server_block_list.append(server_block)
# get certificate data