diff options
Diffstat (limited to 'ipmask.go')
| -rw-r--r-- | ipmask.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -26,6 +26,10 @@ func (i *ipMaskValue) Get() interface{} { return net.IPMask(*i) } +func (i *ipMaskValue) Type() string { + return "ipMask" +} + // Parse IPv4 netmask written in IP form (e.g. 255.255.255.0). // This function should really belong to the net package. func ParseIPv4Mask(s string) net.IPMask { |
