up upnp 修复自动设置路由器IP功能。

This commit is contained in:
SirPdboy 2023-02-26 14:16:31 +08:00 committed by GitHub
parent 5bdcb6531a
commit 8f99e9ed5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,7 @@
-- Copyright 2008-2011 Jo-Philipp Wich <jow@openwrt.org>
-- 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')
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."))