[vlc-devel] [PATCH 9/9] lua: http: Announce the web interface over mdns
Pierre Ynard
linkfanel at yahoo.fr
Wed Sep 2 22:13:58 CEST 2020
> Fix #18090
> ---
> share/lua/intf/http.lua | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/share/lua/intf/http.lua b/share/lua/intf/http.lua
> index ed0c3583eb..06b97ad5a6 100644
> --- a/share/lua/intf/http.lua
> +++ b/share/lua/intf/http.lua
> @@ -330,3 +330,7 @@ password = vlc.var.inherit(nil,"http-password")
> h = vlc.httpd()
> load_dir( http_dir )
> a = h:handler("/art",nil,password,callback_art,nil)
> +sa_entry = vlc.sa.new_entry("VLC Web Interface", "_http._tcp", h:port())
> +if sa_entry then
> + sa_entry:announce(sa_entry)
> +end
What if the interface is accessible only on localhost? You don't want to
advertise something private and inaccessible.
What if the user does NOT want his VLC to be advertised?
--
Pierre Ynard
"Une âme dans un corps, c'est comme un dessin sur une feuille de papier."
More information about the vlc-devel
mailing list