mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-17 14:37:02 +00:00
The spf library has gained support for macros, but to process them properly, a new function needs to be called with the full sender address, spf.CheckHostWithSender. This patch updates chasquid's calls to the new API.
24 lines
367 B
Go
24 lines
367 B
Go
// Command line tool for playing with the SPF library.
|
|
//
|
|
// Not for use in production, just development and experimentation.
|
|
// +build !coverage
|
|
|
|
package main
|
|
|
|
import (
|
|
"flag"
|
|
"fmt"
|
|
"net"
|
|
|
|
"blitiri.com.ar/go/spf"
|
|
)
|
|
|
|
func main() {
|
|
flag.Parse()
|
|
|
|
r, err := spf.CheckHostWithSender(
|
|
net.ParseIP(flag.Arg(0)), "", flag.Arg(1))
|
|
fmt.Println(r)
|
|
fmt.Println(err)
|
|
}
|