Skip to content

Commit 17f660f

Browse files
committed
fix(cluster_scripts): bind webserver to localhost
Updated the webserver command to bind to 127.0.0.1 for better security.
1 parent b1c8790 commit 17f660f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cardano_node_tests/utils/cluster_scripts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ def _gen_supervisor_conf(self, instance_num: int, instance_ports: InstancePorts)
328328
"\n[group:nodes]",
329329
f"programs={','.join(programs)}",
330330
"\n[program:webserver]",
331-
f"command=python -m http.server {instance_ports.webserver}",
331+
f"command=python -m http.server --bind 127.0.0.1 {instance_ports.webserver}",
332332
f"directory=./state-cluster{instance_num}/webserver",
333333
"\n[rpcinterface:supervisor]",
334334
"supervisor.rpcinterface_factory=supervisor.rpcinterface:make_main_rpcinterface",

0 commit comments

Comments
 (0)