瀏覽代碼

CI: Fix services checkers using wrong port for RTMPS

derrod 2 年之前
父節點
當前提交
3778d16d6c
共有 1 個文件被更改,包括 7 次插入1 次删除
  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''