Add tests for prefer ip config type

This commit is contained in:
9seconds
2021-03-12 10:28:08 +03:00
parent dc81740bda
commit 428010880e
3 changed files with 147 additions and 4 deletions
+3 -3
View File
@@ -29,11 +29,11 @@ func (c *TypeIP) MarshalText() ([]byte, error) {
}
func (c TypeIP) String() string {
if c.value == nil {
return ""
if len(c.value) > 0 {
return c.value.String()
}
return c.value.String()
return ""
}
func (c TypeIP) Value(defaultValue net.IP) net.IP {