Browse Source

fix sql driver interface for subnet type

Without this fix the interface was not recognized and resulted in an
error message.
master
Gibheer 7 months ago
parent
commit
211877d18b
  1. 2
      types/ip.go

2
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
}

Loading…
Cancel
Save