mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-29 05:19:05 -05:00
[http] Also allow remote playlists to have https streams (fixes #1251)
Fix it by adding net_is_http_or_https() utility function in misc.h and make sure it used whenever a http protocol check is made.
This commit is contained in:
@@ -622,7 +622,7 @@ rss_add(const char *path)
|
||||
{
|
||||
int ret;
|
||||
|
||||
if (strncmp(path, "http://", 7) != 0 && strncmp(path, "https://", 8) != 0)
|
||||
if (!net_is_http_or_https(path))
|
||||
{
|
||||
DPRINTF(E_SPAM, L_LIB, "Invalid RSS path '%s'\n", path);
|
||||
return LIBRARY_PATH_INVALID;
|
||||
|
||||
Reference in New Issue
Block a user