From 410504e069d37c522dca6bf820e9fc4cea2de871 Mon Sep 17 00:00:00 2001 From: Horus3 Date: Fri, 20 Mar 2015 17:30:11 +0100 Subject: Check if domain points to mail server. Add http handler to create a new entry. --- utilities.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'utilities.go') diff --git a/utilities.go b/utilities.go index 60423dc..199a8b9 100644 --- a/utilities.go +++ b/utilities.go @@ -26,3 +26,17 @@ func CompareStrings(strs ...string) bool { } return true } + +// Checks for equality in two slices from typ IP +/* +func CompareIPs(a, b []IP) bool { + if len(a) != len(b) { + return false + } + for k := range a { + if a[k] != b[i] { + return false + } + } +} +*/ -- cgit v1.2.3