diff --git a/types/ip.go b/types/ip.go index 1ac8d27..448a6bb 100644 --- a/types/ip.go +++ b/types/ip.go @@ -58,7 +58,7 @@ func (i IP) Is6() bool { // // This function is needed so that a subnet can be inserted into // the database without much casting. -func (s *Subnet) Value() (driver.Value, error) { +func (s Subnet) Value() (driver.Value, error) { return s.String(), nil }