nixosTests.mitmproxy: fix certificate location passed to curl (#504385)

This commit is contained in:
Sizhe Zhao
2026-03-31 03:09:14 +00:00
committed by GitHub
+1 -1
View File
@@ -86,7 +86,7 @@ in
''
def curl(command: str, proxy: bool = False):
if proxy:
command = "curl --proxy 127.0.0.1:8080 --cacert ~/.mitmproxy/mitmproxy-ca-cert.pem " + command
command = "curl --proxy 127.0.0.1:8080 --cacert ~/.mitmproxy/mitmproxy-ca.pem " + command
else:
command = "curl " + command
return machine.succeed(command)