* use Go v1.13

This commit is contained in:
Simon Zolin
2019-11-25 14:10:04 +03:00
parent 0a09c7eb4d
commit dc2c68b1e4
5 changed files with 9 additions and 17 deletions

View File

@@ -74,9 +74,6 @@ func run(args options) {
// configure log level and output
configureLogger(args)
// enable TLS 1.3
enableTLS13()
// print the first message after logger is configured
log.Printf("AdGuard Home, version %s, channel %s\n", versionString, updateChannel)
log.Debug("Current working directory is %s", config.ourWorkingDir)
@@ -358,14 +355,6 @@ func configureLogger(args options) {
}
}
// TODO after GO 1.13 release TLS 1.3 will be enabled by default. Remove this afterward
func enableTLS13() {
err := os.Setenv("GODEBUG", os.Getenv("GODEBUG")+",tls13=1")
if err != nil {
log.Fatalf("Failed to enable TLS 1.3: %s", err)
}
}
func cleanup() {
log.Info("Stopping AdGuard Home")