summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-wireguard
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-05-09 16:45:42 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-05-09 16:51:40 +0200
commitb9b64aae968f2d9fbb361ef96ee7e3a58437314f (patch)
treee20482b98bccd3bfd2b46bc2f69f306ab9e2962a /applications/luci-app-wireguard
parent757cdbb5f76cf1b57ecb63d316a1aab35423cb7e (diff)
wireguard: preshared-key is now an attribute of the peer
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'applications/luci-app-wireguard')
-rw-r--r--applications/luci-app-wireguard/luasrc/view/wireguard.htm16
1 files changed, 8 insertions, 8 deletions
diff --git a/applications/luci-app-wireguard/luasrc/view/wireguard.htm b/applications/luci-app-wireguard/luasrc/view/wireguard.htm
index 5b5d59a96..5af6232ae 100644
--- a/applications/luci-app-wireguard/luasrc/view/wireguard.htm
+++ b/applications/luci-app-wireguard/luasrc/view/wireguard.htm
@@ -17,22 +17,22 @@
data[line[1]] = {
name = line[1],
public_key = line[3],
- listen_port = line[5],
- fwmark = line[6],
+ listen_port = line[4],
+ fwmark = line[5],
peers = { }
}
else
local peer = {
public_key = line[2],
- endpoint = line[3],
+ endpoint = line[4],
allowed_ips = { },
- latest_handshake = line[5],
- transfer_rx = line[6],
- transfer_tx = line[7],
- persistent_keepalive = line[8]
+ latest_handshake = line[6],
+ transfer_rx = line[7],
+ transfer_tx = line[8],
+ persistent_keepalive = line[9]
}
if not (line[4] == '(none)') then
- for ipkey, ipvalue in pairs(string.split(line[4], ",")) do
+ for ipkey, ipvalue in pairs(string.split(line[5], ",")) do
if #ipvalue > 0 then
table.insert(peer['allowed_ips'], ipvalue)
end