Fix #1609: luci-proto-wireguard placeholder wrongfully suggests default port 1611/head
authorsquare.wf <30551458+squarewf@users.noreply.github.com>
Tue, 30 Jan 2018 14:38:31 +0000 (15:38 +0100)
committerGitHub <noreply@github.com>
Tue, 30 Jan 2018 14:38:31 +0000 (15:38 +0100)
protocols/luci-proto-wireguard/luasrc/model/cbi/admin_network/proto_wireguard.lua

index fa0db34..46a8f49 100644 (file)
@@ -31,7 +31,7 @@ listen_port = section:taboption(
   translate("Optional. UDP port used for outgoing and incoming packets.")
 )
 listen_port.datatype = "port"
   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(
 listen_port.optional = true
 
 addresses = section:taboption(