added mtu

This commit is contained in:
ston1th 2021-04-17 19:56:27 +02:00
commit 04bbde74ad
2 changed files with 8 additions and 8 deletions

View file

@ -36,7 +36,6 @@ type IPConfig struct {
IPv4Gateway string
IPv6CIDR string
IPv6Gateway string
MTU string
}
func (c *IPConfig) String() string {
@ -53,9 +52,6 @@ func (c *IPConfig) String() string {
str = append(str, "gw6="+c.IPv6Gateway)
}
}
if c.MTU != "" {
str = append(str, "mtu="+c.MTU)
}
return strings.Join(str, ",")
}
@ -79,8 +75,6 @@ func parseIPConfig(s string) (c *IPConfig) {
c.IPv6CIDR = v[1]
case "gw6":
c.IPv6Gateway = v[1]
case "mtu":
c.MTU = v[1]
}
}
return