update main options

This commit is contained in:
Jason
2019-08-19 14:32:18 +08:00
parent bc453cfbc1
commit 7b461f6ca3
2 changed files with 6 additions and 26 deletions

View File

@@ -51,13 +51,11 @@ type CmdArgs struct {
// FakeDNS
EnableFakeDNS *bool
FakeIPRange *string
FakeDNSAddr *string
FakeDNSHosts *string
Hosts *string
HijackDNS *string
BackendDNS *string
// Session Statistics Monitor
// Session Monitor
EnableMonitor *bool
MonitorAddr *string
}
@@ -165,11 +163,6 @@ func main() {
signal.Notify(osSignals, os.Interrupt, os.Kill, syscall.SIGTERM, syscall.SIGHUP)
<-osSignals
// Stop fakeDNS server
if fakeDNS != nil {
fakeDNS.Stop()
}
// Stop session stater
if monitor != nil {
monitor.Stop()