This commit is contained in:
Simon Zolin
2020-05-20 12:13:40 +03:00
parent cdb00a5db7
commit 2a9b87c672
6 changed files with 291 additions and 208 deletions

View File

@@ -467,6 +467,10 @@ func getIfaceIPv6(iface net.Interface) []net.IP {
// Start - start server
func (s *V6Server) Start() error {
if !s.conf.Enabled {
return nil
}
iface, err := net.InterfaceByName(s.conf.InterfaceName)
if err != nil {
return wrapErrPrint(err, "Couldn't find interface by name %s", s.conf.InterfaceName)