1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-17 14:37:02 +00:00
Files
go-chasquid-smtp/cmd/spf-check/spf-check.go
Alberto Bertogli 033a5d657b Use the external log, spf and systemd packages
The log, spf and systemd packages have been externalized; use them
instead of the internal version to avoid having two versions of the same
thing.
2017-09-17 22:17:14 +01:00

21 lines
329 B
Go

// Command line tool for playing with the SPF library.
//
// Not for use in production, just development and experimentation.
package main
import (
"flag"
"fmt"
"net"
"blitiri.com.ar/go/spf"
)
func main() {
flag.Parse()
r, err := spf.CheckHost(net.ParseIP(flag.Arg(0)), flag.Arg(1))
fmt.Println(r)
fmt.Println(err)
}