From 8f75d380f8784b7d8f831baa4e0958a9ea9d49e2 Mon Sep 17 00:00:00 2001 From: "Dolf Schimmel (Freeaqingme)" Date: Sun, 28 Aug 2016 13:21:34 +0200 Subject: [PATCH] Don't use the libspf caching layer. Caching should be left up to the (local) resolver, not to random libraries. What's especially frustrating is that it also caches errors for abitrary amounts of time --- spf2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spf2.go b/spf2.go index fe2d866..bb9e8a4 100644 --- a/spf2.go +++ b/spf2.go @@ -41,7 +41,7 @@ type clientImpl struct { // NewClient creates a new SPF client. func NewClient() Client { client := new(clientImpl) - client.s = C.SPF_server_new(C.SPF_DNS_CACHE, 0) + client.s = C.SPF_server_new(C.SPF_DNS_RESOLV, 0) return client }