update log

This commit is contained in:
nikk gitanes
2021-08-15 10:47:45 +03:00
parent b7682545e1
commit 2c1a5669ae
4 changed files with 14 additions and 4 deletions

View File

@@ -2,6 +2,7 @@ package main
import (
"context"
"fmt"
"io/ioutil"
"net"
"os"
@@ -52,7 +53,11 @@ func main() {
settings.Path = params.Path
settings.HttpAuth = params.HttpAuth
log.Init(params.LogPath, params.WebLogPath)
fmt.Println("=========== START ===========")
if params.HttpAuth {
log.TLogln("Use HTTP Auth file", settings.Path, "/ accs.db")
}
dnsResolve()
Preconfig(params.DontKill)
@@ -90,6 +95,8 @@ func dnsResolve() {
addrs, err = net.LookupHost("www.google.com")
log.TLogln("Check cloudflare dns", addrs, err)
} else {
log.TLogln("Check dns OK", addrs, err)
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long