1
0
Эх сурвалжийг харах

CI: Fix services checkers using wrong port for RTMPS

derrod 2 жил өмнө
parent
commit
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''