Explorar o código

CI: Fix services checkers using wrong port for RTMPS

derrod %!s(int64=2) %!d(string=hai) anos
pai
achega
3778d16d6c
Modificáronse 1 ficheiros con 7 adicións e 1 borrados
  1. 7 1
      CI/check-services.py

+ 7 - 1
CI/check-services.py

@@ -87,7 +87,13 @@ def check_rtmp_server(uri) -> bool:
     """Try connecting and sending a RTMP handshake (with SSL if necessary)"""
     parsed = urlparse(uri)
     hostname, port = parsed.netloc.partition(':')[::2]
-    port = int(port) if port else 1935
+
+    if port:
+        port = int(port)
+    elif parsed.scheme == 'rtmps':
+        port = 443
+    else:
+        port = 1935
 
     try:
         recv = b''