From e30b58020b81bccad9580aae05f6d2616beb559e Mon Sep 17 00:00:00 2001 From: SirPdboy <63764630+sirpdboy@users.noreply.github.com> Date: Sun, 26 Feb 2023 14:43:24 +0800 Subject: [PATCH] =?UTF-8?q?up=20=20upnp=20=E4=BF=AE=E5=A4=8D=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E8=87=AA=E5=8A=A8=E6=9B=B4=E6=96=B0IP=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upnpd/luci-app-upnp/luasrc/model/cbi/upnp/upnp.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/upnpd/luci-app-upnp/luasrc/model/cbi/upnp/upnp.lua b/upnpd/luci-app-upnp/luasrc/model/cbi/upnp/upnp.lua index 867519f..ff07ade 100644 --- a/upnpd/luci-app-upnp/luasrc/model/cbi/upnp/upnp.lua +++ b/upnpd/luci-app-upnp/luasrc/model/cbi/upnp/upnp.lua @@ -2,7 +2,6 @@ -- Copyright 2008-2011 Jo-Philipp Wich -- Licensed to the public under the Apache License 2.0. local uci = require 'luci.model.uci'.cursor() -local gateip="http://"..uci:get_first('network', 'lan', 'ipaddr') require("luci.tools.webadmin") m = Map("upnpd", luci.util.pcdata(translate("Universal Plug & Play")), translate("UPnP allows clients in the local network to automatically configure the router.")) @@ -45,7 +44,7 @@ s:taboption("general", Flag, "igdv1", translate("Enable IGDv1 mode"), translate("Advertise as IGDv1 device instead of IGDv2")).default = "1" pu = s:taboption("general", Value, "presentation_url", translate("Presentation URL")) -pu..default=gateip +pu.default = "http://" .. uci:get('network', 'lan', 'ipaddr') s:taboption("general", Flag, "log_output", translate("Enable additional logging"), translate("Puts extra debugging information into the system log"))