|
@ -27,7 +27,8 @@ def loadWsStream(host: str, path: str, isEd: bool) -> dict: |
|
|
'client': { |
|
|
'client': { |
|
|
'type': 'ws', |
|
|
'type': 'ws', |
|
|
'host': host, |
|
|
'host': host, |
|
|
'path': path |
|
|
'path': path, |
|
|
|
|
|
'secure': None |
|
|
}, |
|
|
}, |
|
|
'server': { |
|
|
'server': { |
|
|
'network': 'ws', |
|
|
'network': 'ws', |
|
@ -45,7 +46,8 @@ def loadWsStream(host: str, path: str, isEd: bool) -> dict: |
|
|
'type': 'ws', |
|
|
'type': 'ws', |
|
|
'host': host, |
|
|
'host': host, |
|
|
'path': path, |
|
|
'path': path, |
|
|
'ed': 2048 |
|
|
'ed': 2048, |
|
|
|
|
|
'secure': None |
|
|
}, |
|
|
}, |
|
|
'server': { |
|
|
'server': { |
|
|
'network': 'ws', |
|
|
'network': 'ws', |
|
@ -58,7 +60,6 @@ def loadWsStream(host: str, path: str, isEd: bool) -> dict: |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def addTlsConfig(rawStreamInfo: dict, cert: str, key: str, sni: str) -> dict: |
|
|
def addTlsConfig(rawStreamInfo: dict, cert: str, key: str, sni: str) -> dict: |
|
|
streamInfo = copy.deepcopy(rawStreamInfo) |
|
|
streamInfo = copy.deepcopy(rawStreamInfo) |
|
|
streamInfo['caption'] += ' (tls)' |
|
|
streamInfo['caption'] += ' (tls)' |
|
|