mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-01 13:14:01 +03:00
Add tests for prefer ip config type
This commit is contained in:
+3
-3
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user