From f6117a4ec05f269feb66a09bb7cdac723318dc2f Mon Sep 17 00:00:00 2001 From: df Date: Mon, 2 Nov 2020 15:14:23 +0000 Subject: [PATCH] Make 127.0.0.1 the default host for `system dlnahelper` In all the cases where `system dlnahelper` is called, no host/IP part is specified, and those cases are creating a URL that only needs to be accessible from the same machine, where the loopback address should be the default. Should fix eg https://hummy.tv/forum/threads/detectads-not-always-succesful.9936/post-147241. --- webif/lib/system.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webif/lib/system.class b/webif/lib/system.class index 8fbc763..e41bf7e 100644 --- a/webif/lib/system.class +++ b/webif/lib/system.class @@ -309,7 +309,7 @@ proc {system dlnaurl} {file {urlbase ""}} { return $ret } -proc {system dlnahelper} {file {urlbase ""}} { +proc {system dlnahelper} {file {urlbase "127.0.0.1"}} { set dir /mnt/hd2/mod/.dlnahelper require lock