diff --git a/Controllers/RtmpAuthController.cs b/Controllers/RtmpAuthController.cs index 912680a..b979eb1 100644 --- a/Controllers/RtmpAuthController.cs +++ b/Controllers/RtmpAuthController.cs @@ -17,11 +17,8 @@ namespace RTMPDash.Controllers { Response.Headers.Add("x-rtmp-user", user!.Username); - if (!user!.AllowRestream || string.IsNullOrWhiteSpace(user.RestreamTargets)) - Response.Headers.Add("x-rtmp-target", "rtmp://127.0.0.1/src/" + user!.Username); - else - Response.Headers.Add("x-rtmp-target", - "rtmp://127.0.0.1/src/" + user!.Username + "," + user.RestreamTargets); + if (user.AllowRestream && !string.IsNullOrWhiteSpace(user.RestreamTargets)) + Response.Headers.Add("x-rtmp-target", user.RestreamTargets); Response.StatusCode = 302; return "authorized as " + user!.Username;