summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/luasrc
diff options
context:
space:
mode:
Diffstat (limited to 'modules/luci-base/luasrc')
-rw-r--r--modules/luci-base/luasrc/dispatcher.lua10
-rw-r--r--modules/luci-base/luasrc/sys.luadoc49
2 files changed, 4 insertions, 55 deletions
diff --git a/modules/luci-base/luasrc/dispatcher.lua b/modules/luci-base/luasrc/dispatcher.lua
index 44c17c85f8..2f965b16a8 100644
--- a/modules/luci-base/luasrc/dispatcher.lua
+++ b/modules/luci-base/luasrc/dispatcher.lua
@@ -563,15 +563,13 @@ local function session_setup(user, pass)
ubus_rpc_session = login.ubus_rpc_session,
values = { token = sys.uniqueid(16) }
})
-
- io.stderr:write("luci: accepted login on /%s for %s from %s\n"
- %{ rp, user or "?", http.getenv("REMOTE_ADDR") or "?" })
+ nixio.syslog("info", tostring("luci: accepted login on /%s for %s from %s\n"
+ %{ rp, user or "?", http.getenv("REMOTE_ADDR") or "?" }))
return session_retrieve(login.ubus_rpc_session)
end
-
- io.stderr:write("luci: failed login on /%s for %s from %s\n"
- %{ rp, user or "?", http.getenv("REMOTE_ADDR") or "?" })
+ nixio.syslog("info", tostring("luci: failed login on /%s for %s from %s\n"
+ %{ rp, user or "?", http.getenv("REMOTE_ADDR") or "?" }))
end
local function check_authentication(method)
diff --git a/modules/luci-base/luasrc/sys.luadoc b/modules/luci-base/luasrc/sys.luadoc
index 162650e7ac..c1e088eb23 100644
--- a/modules/luci-base/luasrc/sys.luadoc
+++ b/modules/luci-base/luasrc/sys.luadoc
@@ -111,16 +111,6 @@ LuCI system utilities / network related functions.
]]
---[[
-Returns the current arp-table entries as two-dimensional table.
-
-@class function
-@name net.arptable
-@return Table of table containing the current arp entries.
--- The following fields are defined for arp entry objects:
--- { "IP address", "HW address", "HW type", "Flags", "Mask", "Device" }
-]]
-
----[[
Returns a two-dimensional table of mac address hints.
@class function
@@ -177,45 +167,6 @@ Determine the names of available network interfaces.
]]
---[[
-Return information about available network interfaces.
-
-@class function
-@name net.deviceinfo
-@return Table containing all current interface names and their information
-]]
-
----[[
-Returns the current kernel routing table entries.
-
-@class function
-@name net.routes
-@return Table of tables with properties of the corresponding routes.
--- The following fields are defined for route entry tables:
--- { "dest", "gateway", "metric", "refcount", "usecount", "irtt",
--- "flags", "device" }
-]]
-
----[[
-Returns the current ipv6 kernel routing table entries.
-
-@class function
-@name net.routes6
-@return Table of tables with properties of the corresponding routes.
--- The following fields are defined for route entry tables:
--- { "source", "dest", "nexthop", "metric", "refcount", "usecount",
--- "flags", "device" }
-]]
-
----[[
-Tests whether the given host responds to ping probes.
-
-@class function
-@name net.pingtest
-@param host String containing a hostname or IPv4 address
-@return Number containing 0 on success and >= 1 on error
-]]
-
----[[
LuCI system utilities / process related functions.
@class module