mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 09:31:20 -04:00
iuysug
This commit is contained in:
@@ -78,6 +78,10 @@ app.post('/mediamtx/auth', (req, res) => {
|
|||||||
if (body.user === 'bridge' && body.pass === 'bridge') {
|
if (body.user === 'bridge' && body.pass === 'bridge') {
|
||||||
return res.status(200).end();
|
return res.status(200).end();
|
||||||
}
|
}
|
||||||
|
// Also allow localhost reads of *-raw paths for the bridge even if creds are missing.
|
||||||
|
if (!body.user && streamInfo?.id?.endsWith('-raw') && (req.ip === '127.0.0.1' || req.ip === '::1')) {
|
||||||
|
return res.status(200).end();
|
||||||
|
}
|
||||||
|
|
||||||
logger.info('video auth request', { path: body.path, sessionId, stream: streamInfo });
|
logger.info('video auth request', { path: body.path, sessionId, stream: streamInfo });
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user