luci-app-dockerman: unify socket_path and hosts by adding the prefix unix://

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
Florian Eckert 2020-07-29 09:06:04 +02:00
parent c19a7d18e5
commit 182c3012da
2 changed files with 3 additions and 4 deletions

View file

@ -723,7 +723,7 @@ elseif action == "console" then
if remote and host and port then if remote and host and port then
hosts = host .. ':'.. port hosts = host .. ':'.. port
elseif socket_path then elseif socket_path then
hosts = "unix://" .. socket_path hosts = socket_path
else else
return return
end end

View file

@ -99,9 +99,8 @@ o.rmempty = false
o = s:option(Value, "socket_path", o = s:option(Value, "socket_path",
translate("Docker Socket Path")) translate("Docker Socket Path"))
o.default = "/var/run/docker.sock" o.default = "unix://var/run/docker.sock"
o.placeholder = "/var/run/docker.sock" o.placeholder = "unix://var/run/docker.sock"
o.rmempty = false
o:depends("remote_endpoint", 1) o:depends("remote_endpoint", 1)
o = s:option(Value, "remote_host", o = s:option(Value, "remote_host",