aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard
diff options
context:
space:
mode:
authorJeroen Leenarts <jeroen.leenarts@gmail.com>2018-08-16 22:41:45 +0200
committerJeroen Leenarts <jeroen.leenarts@gmail.com>2018-08-16 22:41:45 +0200
commit5a7e67b53c4cd81558e5faf0b287584db3ec208d (patch)
treeebeccd024cdf29cc46114b73cc0c43b8d087538e /WireGuard
parentUse `commaSeparatedToArray` utility everywhere. (diff)
downloadwireguard-apple-5a7e67b53c4cd81558e5faf0b287584db3ec208d.tar.xz
wireguard-apple-5a7e67b53c4cd81558e5faf0b287584db3ec208d.zip
Extend validators to work for DNS entries as well.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'WireGuard')
-rw-r--r--WireGuard/Models/Interface+Extension.swift2
1 files changed, 1 insertions, 1 deletions
diff --git a/WireGuard/Models/Interface+Extension.swift b/WireGuard/Models/Interface+Extension.swift
index 98d0240..78ef567 100644
--- a/WireGuard/Models/Interface+Extension.swift
+++ b/WireGuard/Models/Interface+Extension.swift
@@ -29,7 +29,7 @@ extension Interface {
try dns?.commaSeparatedToArray().forEach { address in
do {
- try _ = Endpoint(endpointString: address)
+ try _ = Endpoint(endpointString: address, needsPort: false)
} catch {
throw InterfaceValidationError.invalidDNSServer(cause: error)
}