luci-app-wireguard: QR-Code enhancements 2749/head
authorDirk Brenken <dev@brenken.org>
Tue, 4 Jun 2019 20:20:29 +0000 (22:20 +0200)
committerDirk Brenken <dev@brenken.org>
Thu, 11 Jul 2019 06:11:38 +0000 (08:11 +0200)
commit87ff357d4ce09f9510cde8170e0b8c24ab7d5a53
tree987d77607c322ae478ffd109e9eb52e18500aaff
parent8055ed4c469516932a7abceed41b13cc7a11de35
luci-app-wireguard: QR-Code enhancements

* explain the QR-Code 'use case' and the transfered information
* limit the QR-Code information to bare minimum (per interface):
  * [Interface] A random, on the fly generated 'PrivateKey',
                the key will not be saved on the router
  * [Peer] The 'PublicKey' of that wg interface and the
           'AllowedIPs' with the default of '0.0.0.0/0, ::/0'
           to allow sending traffic to any IPv4 and IPv6 address
* the QR-Code logic will be processed only once per page load,
  and not every 5 seconds with the regular XHR refresh

See corresponding forum thread:
https://forum.openwrt.org/t/luci-app-wireguard-qr-code-shows-private-key/38133

Signed-off-by: Dirk Brenken <dev@brenken.org>
applications/luci-app-wireguard/luasrc/view/wireguard.htm