summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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