aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/VPN/InternetReachability.swift
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--WireGuard/WireGuard/VPN/InternetReachability.swift4
1 files changed, 2 insertions, 2 deletions
diff --git a/WireGuard/WireGuard/VPN/InternetReachability.swift b/WireGuard/WireGuard/VPN/InternetReachability.swift
index 831050e..2e50852 100644
--- a/WireGuard/WireGuard/VPN/InternetReachability.swift
+++ b/WireGuard/WireGuard/VPN/InternetReachability.swift
@@ -28,8 +28,8 @@ class InternetReachability {
sin_port: 0,
sin_addr: in_addr(s_addr: 0),
sin_zero: (0, 0, 0, 0, 0, 0, 0, 0))
- return withUnsafePointer(to: addrIn) { (addrInPtr) -> SCNetworkReachability? in
- addrInPtr.withMemoryRebound(to: sockaddr.self, capacity: 1) { (addrPtr) -> SCNetworkReachability? in
+ return withUnsafePointer(to: addrIn) { addrInPtr in
+ addrInPtr.withMemoryRebound(to: sockaddr.self, capacity: 1) { addrPtr in
return SCNetworkReachabilityCreateWithAddress(nil, addrPtr)
}
}