git » spf » commit 340e6a4

Mark CheckHost as deprecated

author Alberto Bertogli
2020-09-09 23:17:14 UTC
committer Alberto Bertogli
2020-09-09 23:17:22 UTC
parent 842a94cf3853218e096baba816c26fbfb2c34192

Mark CheckHost as deprecated

The CheckHost function has been deprecated in favour of
CheckHostWithSender for a while, so this patch marks it more clearly
using the standard convention.

spf.go +3 -0

diff --git a/spf.go b/spf.go
index a173835..ef4a27c 100644
--- a/spf.go
+++ b/spf.go
@@ -110,7 +110,10 @@ var (
 // Because it doesn't receive enough information to handle macros well, its
 // usage is not recommended, but remains supported for backwards
 // compatibility.
+//
 // Reference: https://tools.ietf.org/html/rfc7208#section-4
+//
+// Deprecated: use CheckHostWithSender instead.
 func CheckHost(ip net.IP, domain string) (Result, error) {
 	trace("check host %q %q", ip, domain)
 	r := &resolution{ip, 0, "@" + domain, nil}