mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-23 15:37:01 +00:00
smtpsrv: Use spf.CheckHostWithSender
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.
This commit is contained in:
@@ -16,7 +16,8 @@ import (
|
||||
func main() {
|
||||
flag.Parse()
|
||||
|
||||
r, err := spf.CheckHost(net.ParseIP(flag.Arg(0)), flag.Arg(1))
|
||||
r, err := spf.CheckHostWithSender(
|
||||
net.ParseIP(flag.Arg(0)), "", flag.Arg(1))
|
||||
fmt.Println(r)
|
||||
fmt.Println(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user