Skip to content

Commit

Permalink
Add domains
Browse files Browse the repository at this point in the history
  • Loading branch information
KillerX committed Oct 3, 2022
1 parent 8657b7e commit 2b3d151
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vod/Controllers/HlsProxyController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public async Task<IActionResult> GetSecondLevelManifest(string playbackUrl, stri
return new BadRequestObjectResult("Missing parameters");
}

var allowedHosts = new string[] { "vod.brunstad.tv", "vod2.brunstad.tv" };
var allowedHosts = new string[]{ "vod.brunstad.tv", "vod2.brunstad.tv", "vod-dev.stream.brunstad.tv", "vod-sta.stream.brunstad.tv", "vod.stream.brunstad.tv"};
Uri.TryCreate(playbackUrl, UriKind.Absolute, out var uri);
var host = uri?.Host.ToLower();
if (host == null || !allowedHosts.Contains(host))
Expand Down

0 comments on commit 2b3d151

Please sign in to comment.