summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-01-30 17:34:50 +0100
committerGitHub <noreply@github.com>2018-01-30 17:34:50 +0100
commit47d1eaaf306d55afeed3f4a398c8e46b00d4a9be (patch)
treec432f42ec78c9a3a3f7a6d649cf1b35313484bcf
parent509c28a261f0d8a08e9d4ced55cf67e2ca1a8367 (diff)
parent43589ae4d81ca0fc34ca7bfeaa2cd9280f3c5800 (diff)
Merge pull request #1611 from squarewf/patch-1
Fix #1609: luci-proto-wireguard placeholder wrongfully suggests default port
-rw-r--r--protocols/luci-proto-wireguard/luasrc/model/cbi/admin_network/proto_wireguard.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/luci-proto-wireguard/luasrc/model/cbi/admin_network/proto_wireguard.lua b/protocols/luci-proto-wireguard/luasrc/model/cbi/admin_network/proto_wireguard.lua
index fa0db3412e..46a8f49d97 100644
--- a/protocols/luci-proto-wireguard/luasrc/model/cbi/admin_network/proto_wireguard.lua
+++ b/protocols/luci-proto-wireguard/luasrc/model/cbi/admin_network/proto_wireguard.lua
@@ -31,7 +31,7 @@ listen_port = section:taboption(
translate("Optional. UDP port used for outgoing and incoming packets.")
)
listen_port.datatype = "port"
-listen_port.placeholder = "51820"
+listen_port.placeholder = translate("random")
listen_port.optional = true
addresses = section:taboption(