put back fakedns server

This commit is contained in:
Jason
2019-08-19 17:01:27 +08:00
parent 9c963750ef
commit 7d6c51c7c3
4 changed files with 61 additions and 6 deletions

View File

@@ -51,6 +51,7 @@ type CmdArgs struct {
// FakeDNS
EnableFakeDNS *bool
FakeDNSAddr *string
Hosts *string
HijackDNS *string
BackendDNS *string
@@ -163,7 +164,12 @@ func main() {
signal.Notify(osSignals, os.Interrupt, os.Kill, syscall.SIGTERM, syscall.SIGHUP)
<-osSignals
// Stop session stater
// Stop fakeDNS
if fakeDNS != nil {
fakeDNS.Stop()
}
// Stop session monitor
if monitor != nil {
monitor.Stop()
}