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

@@ -296,7 +296,7 @@ func run(args options) {
}
}()
err = startDHCPServer()
err = Context.dhcpServer.Start()
if err != nil {
log.Fatal(err)
}
@@ -447,7 +447,7 @@ func cleanup() {
if err != nil {
log.Error("Couldn't stop DNS server: %s", err)
}
err = stopDHCPServer()
err = Context.dhcpServer.Stop()
if err != nil {
log.Error("Couldn't stop DHCP server: %s", err)
}