mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-17 14:37:02 +00:00
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.
21 lines
329 B
Go
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)
|
|
}
|