Trim whitespace for rtmp url to keep live restreams counter functional
This commit is contained in:
parent
d7deaed412
commit
06808049fd
|
@ -44,7 +44,7 @@ public class DashboardModel : PageModel {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Request.Form["action"] == "restream_targets_set") {
|
if (Request.Form["action"] == "restream_targets_set") {
|
||||||
var newtgts = Request.Form["value"].ToString();
|
var newtgts = Request.Form["value"].ToString().Trim();
|
||||||
if (newtgts.Contains("localhost") || newtgts.Contains("127.0.0.1") || newtgts.Contains(user.StreamKey))
|
if (newtgts.Contains("localhost") || newtgts.Contains("127.0.0.1") || newtgts.Contains(user.StreamKey))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -99,4 +99,4 @@ public class DashboardModel : PageModel {
|
||||||
db.Update(user);
|
db.Update(user);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue