This commit is contained in:
Evgeny Sorokin 2024-04-03 05:25:40 +03:00
parent 9327c98e48
commit 6032737d74

View File

@ -446,7 +446,7 @@ async def cams(req: web.Request):
hls_pfx = 'https://'+req.headers.get('Host') hls_pfx = 'https://'+req.headers.get('Host')
hls_pfx += re.sub(r'/home/?$', '/ipcam/', os.path.dirname(req.headers.get('X-Real-URI'))) hls_pfx += re.sub(r'/home/?$', '/ipcam/', os.path.dirname(req.headers.get('X-Real-URI')))
else: else:
hls_pfx = 'http://'+config.app_config['hls_local_host']+'/ipcam/' hls_pfx = 'http://'+str(config.app_config['hls_local_host'])+'/ipcam/'
js_config = { js_config = {
'pfx': hls_pfx, 'pfx': hls_pfx,