Skip to content

Commit 5fe7bc4

Browse files
CP-40753 host.set_https_only updates firewall using firewall_port_config_script helper
Signed-off-by: jameshensmancitrix <james.hensman@citrix.com>
1 parent 6745398 commit 5fe7bc4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ocaml/xapi/xapi_host.ml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2927,4 +2927,7 @@ let apply_updates ~__context ~self ~hash =
29272927
warnings
29282928

29292929
let set_https_only ~__context ~self ~value =
2930-
Db.Host.set_https_only ~__context ~self ~value
2930+
Db.Host.set_https_only ~__context ~self ~value ;
2931+
let state = match value with true -> "close" | false -> "open" in
2932+
ignore
2933+
@@ Helpers.call_script !Xapi_globs.firewall_port_config_script [state; "80"]

0 commit comments

Comments
 (0)