func (s *Server) addIPToInterface(vip net.IP) error {
	log.Infof("Adding %s to %s", vip, s.ListenConfig.Iface)
	iface, err := net.InterfaceByName(s.ListenConfig.Iface)
	if err != nil {
		return fmt.Errorf("failed to add IP to the %s interface: %v", s.ListenConfig.Iface, err)
	}
	return addIfaceIP(iface, &vip)
}
AddIPOnInterface adds ip to interface
package server
import (
	"fmt"
	"net"
	log "github.com/sirupsen/logrus"
)
const ipv4Mask = 32
const ipv6Mask = 64