Commit Diff


commit - 1babcf1ea49d9c8823a706a36d1a12ef43733d28
commit + 6bb09cecb3e598c98ba7f9d724a18bd07190d35a
blob - 57ece1262f090f32656a38ee780053d8f0531c28
blob + b97e9733f27540b23818e23506caab2e0162be37
--- src/box/lua/console.lua
+++ src/box/lua/console.lua
@@ -853,11 +853,7 @@ local function connect(uri, opts)
     -- We don't know if the remote end is binary or Lua console so we first try
     -- to connect to it as binary using net.box and fall back on Lua console if
     -- it fails.
-    local remote = net_box.connect(u.host, u.service, {
-            connect_timeout = opts.timeout,
-            user = u.login,
-            password = u.password,
-    })
+    local remote = net_box.connect(uri, {connect_timeout = opts.timeout})
     if remote.state == 'error' then
         local err = remote.error
         remote = nil