mirror of
https://github.com/rightup/pyMC_Repeater.git
synced 2026-05-04 12:42:16 +02:00
fix: If we're using websockets, default to tls enabled = true if we're using port 443
This commit is contained in:
@@ -1103,6 +1103,10 @@ class APIEndpoints:
|
||||
"format": str(b["format"]).strip(),
|
||||
"disallowed_packet_types": list(b.get("disallowed_packet_types", [])),
|
||||
"retain_status": bool(b.get("retain_status", False)),
|
||||
"tls": {
|
||||
"enabled": bool(b.get("tls", {}).get("enabled", True if port == 443 else False)),
|
||||
"insecure": bool(b.get("tls", {}).get("insecure", False)),
|
||||
}
|
||||
}
|
||||
|
||||
if b.get("use_jwt_auth", False):
|
||||
|
||||
Reference in New Issue
Block a user