mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-01 15:49:51 +08:00
rtmp-services: Only do URL check for Facebook
Prevents services with special exception services from unintentionally using the wrong server. There's no real reason to be doing this on anything but Facebook at the moment anyway.
This commit is contained in:
@@ -36,7 +36,7 @@ static void ensure_valid_url(struct rtmp_common *service, json_t *json,
|
||||
|
||||
if (!service->server || !servers || !json_is_array(servers))
|
||||
return;
|
||||
if (astrcmpi(service->server, "auto") == 0)
|
||||
if (astrstri(service->service, "Facebook") == NULL)
|
||||
return;
|
||||
|
||||
json_array_foreach (servers, index, server) {
|
||||
|
||||
Reference in New Issue
Block a user