Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
7faec524da | |||
cd7e2e7a0f | |||
c07984c506 | |||
2235372c64 |
@ -96,7 +96,7 @@ router.route("/:id/stream")
|
||||
router.route("/:id/stream/:rate/:audioIndex")
|
||||
.get((req, res) => {
|
||||
if (!server.lists.video_quality.includes(req.params.rate)) {
|
||||
req.end();
|
||||
res.end();
|
||||
}
|
||||
|
||||
let video = getFileName(req);
|
||||
|
@ -101,7 +101,7 @@ app.use(fileUpload({
|
||||
}));
|
||||
const corsOptions = {
|
||||
origin: (origin, callback) => {
|
||||
if (!origin || config.allowed_domains.indexOf(origin.replace(/:\d*$/g, "")) !== -1) {
|
||||
if (!origin || config.domain == origin.replace(/:\d*$/g, "") || config.allowed_domains.indexOf(origin.replace(/:\d*$/g, "")) !== -1) {
|
||||
callback(null, true);
|
||||
} else {
|
||||
database.system.domains((domains) => {
|
||||
|
Loading…
Reference in New Issue
Block a user