-(dnsforward): fixed sigsegv when protection is disabled

Also, fixed all golint issues

 Closes: #941
This commit is contained in:
Andrey Meshkov
2019-08-20 00:55:32 +03:00
parent 91a1eb9e06
commit c82e93cfc7
6 changed files with 40 additions and 8 deletions

View File

@@ -61,6 +61,7 @@ func Main(version string, channel string) {
// run initializes configuration and runs the AdGuard Home
// run is a blocking method and it won't exit until the service is stopped!
// nolint
func run(args options) {
// config file path can be overridden by command-line arguments:
if args.configFilename != "" {