aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard
diff options
context:
space:
mode:
authorJeroen Leenarts <jeroen.leenarts@gmail.com>2018-09-20 00:44:24 +0200
committerJeroen Leenarts <jeroen.leenarts@gmail.com>2018-09-20 00:44:24 +0200
commit19a4339a2703d3180100e18ea1eea2d1241af310 (patch)
tree33a21494cb425f9144b4133f9d451a1bf1724d3e /WireGuard
parentGet rid of a few cosmetic lines. (diff)
downloadwireguard-apple-19a4339a2703d3180100e18ea1eea2d1241af310.tar.xz
wireguard-apple-19a4339a2703d3180100e18ea1eea2d1241af310.zip
Report the correct number of rows in the info table view.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'WireGuard')
-rw-r--r--WireGuard/ViewControllers/TunnelInfoTableViewController.swift4
1 files changed, 2 insertions, 2 deletions
diff --git a/WireGuard/ViewControllers/TunnelInfoTableViewController.swift b/WireGuard/ViewControllers/TunnelInfoTableViewController.swift
index fe528ed..f91c41b 100644
--- a/WireGuard/ViewControllers/TunnelInfoTableViewController.swift
+++ b/WireGuard/ViewControllers/TunnelInfoTableViewController.swift
@@ -40,13 +40,13 @@ class TunnelInfoTableViewController: UITableViewController {
}
override func numberOfSections(in tableView: UITableView) -> Int {
- return 3
+ return 2
}
override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
switch section {
case 1:
- return tunnel?.peers?.count ?? 1
+ return tunnel?.peers?.count ?? 0
default:
return 1
}