summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2021-04-08 15:55:26 +0200
committerFlorian Eckert <fe@dev.tdt.de>2021-04-08 16:25:52 +0200
commit483f1005b1f635fd6ccf92b6fc0c1df5755280de (patch)
tree039c340738bba9ed5734c69cb6bd0c046706fde1
parent2ffdf1988ee972933bd59ef975a374ec22f481bd (diff)
luci-app-dockerman: if remote_endpoint is selected a port must be set
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
-rw-r--r--applications/luci-app-dockerman/luasrc/model/cbi/dockerman/overview.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/overview.lua b/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/overview.lua
index f826f2633f..e28343f1a7 100644
--- a/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/overview.lua
+++ b/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/overview.lua
@@ -109,7 +109,9 @@ o:depends("remote_endpoint", 1)
o = s:option(Value, "remote_port",
translate("Remote Port"))
o.placeholder = "2375"
-o.default = "2375"
+o.datatype = "port"
+o.rmempty = false
+o.optional = false
o:depends("remote_endpoint", 1)
if nixio.fs.access("/usr/bin/dockerd") then