mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 17:04:39 +03:00
mox!
This commit is contained in:
15
dsn/nameip.go
Normal file
15
dsn/nameip.go
Normal file
@ -0,0 +1,15 @@
|
||||
package dsn
|
||||
|
||||
import (
|
||||
"net"
|
||||
)
|
||||
|
||||
// NameIP represents a name and possibly IP, e.g. representing a connection destination.
|
||||
type NameIP struct {
|
||||
Name string
|
||||
IP net.IP
|
||||
}
|
||||
|
||||
func (n NameIP) IsZero() bool {
|
||||
return n.Name == "" && n.IP == nil
|
||||
}
|
Reference in New Issue
Block a user