summaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-10-30 21:28:02 +0100
committerGitHub <noreply@github.com>2020-10-30 21:28:02 +0100
commitbd40525a69fe591b5ab487df25238401196cb77a (patch)
tree941a83810e052bfd4ddf3cdfce94413c48898048 /libs
parent31e73779fe019bb5d1dde50e944320457d0983c2 (diff)
parent1f6dc29f745b3a38d7b5cab709964ad78d69de1c (diff)
Merge pull request #4373 from wjowsa/ubus-connect-args
luci-base: Add possiblity to set path and timeout of ubus connection
Diffstat (limited to 'libs')
-rw-r--r--libs/luci-lib-base/luasrc/util.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/luci-lib-base/luasrc/util.lua b/libs/luci-lib-base/luasrc/util.lua
index 38e00ad83b..89757917ff 100644
--- a/libs/luci-lib-base/luasrc/util.lua
+++ b/libs/luci-lib-base/luasrc/util.lua
@@ -663,9 +663,9 @@ local function ubus_return(...)
return ...
end
-function ubus(object, method, data)
+function ubus(object, method, data, path, timeout)
if not _ubus_connection then
- _ubus_connection = _ubus.connect()
+ _ubus_connection = _ubus.connect(path, timeout)
assert(_ubus_connection, "Unable to establish ubus connection")
end