added fix in if statement to fix simple error when adding ipv6 address

This commit is contained in:
2021-07-10 00:05:31 +04:00
parent 5be8778652
commit ae2500ed4b
4 changed files with 17 additions and 7 deletions

View File

@@ -53,7 +53,6 @@ var CliAction = func(ctx *cli.Context) error {
// Append IP address to variable result which
// is a list
res.IpAddress = append(res.IpAddress, IpAddr)
// Adds the new server IP to the iptable
res.WriteIpTable()