summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2023-11-21 23:29:38 -0600
committerGitHub <noreply@github.com>2023-11-21 23:29:38 -0600
commitaf08c30063fb1c68cbf1ca6cae3588efdef34b7d (patch)
treef567319c5761857d145af9685ee4343402172d61 /src/conf_mode
parent02a3e26e88f0ac3c7368e288769bfed38b41df46 (diff)
parent0e885f1bf01424130b6876e769cc42612b19351b (diff)
downloadvyos-1x-af08c30063fb1c68cbf1ca6cae3588efdef34b7d.tar.gz
vyos-1x-af08c30063fb1c68cbf1ca6cae3588efdef34b7d.zip
Merge pull request #2519 from c-po/t5762-vhost-port
http: T5762: rename "virtual-host listen-port" -> "virtual-host port"
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/https.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/https.py b/src/conf_mode/https.py
index 028a5007a..26c4343a0 100755
--- a/src/conf_mode/https.py
+++ b/src/conf_mode/https.py
@@ -122,7 +122,7 @@ def verify(https):
server_block = deepcopy(default_server_block)
data = vhost_dict.get(vhost, {})
server_block['address'] = data.get('listen-address', '*')
- server_block['port'] = data.get('listen-port', '443')
+ server_block['port'] = data.get('port', '443')
server_block_list.append(server_block)
for entry in server_block_list:
@@ -156,7 +156,7 @@ def generate(https):
server_block['id'] = vhost
data = vhost_dict.get(vhost, {})
server_block['address'] = data.get('listen-address', '*')
- server_block['port'] = data.get('listen-port', '443')
+ server_block['port'] = data.get('port', '443')
name = data.get('server-name', ['_'])
server_block['name'] = name
allow_client = data.get('allow-client', {})