mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-08-27 12:30:13 +03:00
fix(web-wireshark): add -k flag to curl for HTTPS with self-signed certs
Add -k flag to curl command when capture_stream_url uses HTTPS protocol, to skip SSL certificate validation. This allows Web Wireshark to work with GNS3 servers using self-signed certificates. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
98477371d2
commit
fd6868efce
@ -888,8 +888,10 @@ class WebWiresharkManager:
|
||||
raise RuntimeError("Container has no IP address")
|
||||
|
||||
# Start Wireshark in background (fire-and-forget, no waiting)
|
||||
# Use -k for HTTPS to skip certificate validation (for self-signed certs)
|
||||
curl_insecure_flag = "-k" if capture_stream_url.startswith("https://") else ""
|
||||
wireshark_cmd = (
|
||||
f"curl -N -H 'Authorization: Bearer {jwt_token}' "
|
||||
f"curl {curl_insecure_flag} -N -H 'Authorization: Bearer {jwt_token}' "
|
||||
f"'{capture_stream_url}' | "
|
||||
f"wireshark -i - -k --fullscreen -display :{display} &"
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user