This commit is contained in:
Simon Zolin
2020-05-19 13:03:39 +03:00
parent 79fe68b35f
commit f60d6f973d
5 changed files with 139 additions and 39 deletions

View File

@@ -466,6 +466,13 @@ func (s *V6Server) Start(iface net.Interface) error {
return nil
}
// Reset - stop server
func (s *V6Server) Reset() {
s.leasesLock.Lock()
s.leases = nil
s.leasesLock.Unlock()
}
// Stop - stop server
func (s *V6Server) Stop() {
if s.srv == nil {