Browse Source

CI: Fix services checkers using wrong port for RTMPS

derrod 2 years ago
parent
commit
3778d16d6c
1 changed files with 7 additions and 1 deletions
  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)"""
     """Try connecting and sending a RTMP handshake (with SSL if necessary)"""
     parsed = urlparse(uri)
     parsed = urlparse(uri)
     hostname, port = parsed.netloc.partition(':')[::2]
     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:
     try:
         recv = b''
         recv = b''