瀏覽代碼

[contrib/lua] Authenticate memory usage request

Lars Gierth 10 年之前
父節點
當前提交
93fc05f2ec
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      contrib/lua/cjdns/util.lua

+ 1 - 1
contrib/lua/cjdns/util.lua

@@ -26,7 +26,7 @@ function UtilFunctions:ping()
 end
 
 function UtilFunctions:memory()
-    local response, err = self.ai:call({q = "memory"})
+    local response, err = self.ai:auth({q = "memory"})
     if response and response.bytes then
         return response.bytes
     else