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
This commit is contained in:
Dolf Schimmel (Freeaqingme)
2016-08-28 13:21:34 +02:00
parent b6690e62a7
commit 8f75d380f8

View File

@@ -41,7 +41,7 @@ type clientImpl struct {
// NewClient creates a new SPF client. // NewClient creates a new SPF client.
func NewClient() Client { func NewClient() Client {
client := new(clientImpl) 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 return client
} }