diff options
author | terminaldweller <devi@terminaldweller.com> | 2025-01-14 21:13:58 +0000 |
---|---|---|
committer | terminaldweller <devi@terminaldweller.com> | 2025-01-14 21:13:58 +0000 |
commit | 233b5b943ac5dbdd54f4418cda74fa037d8cf6a2 (patch) | |
tree | 7998cace15d0e90df120cd7e2815b700fb05af20 /icanhazallips.go | |
parent | fixed a typo in the subject name for the self-signed cert (diff) | |
download | icanhazallips-233b5b943ac5dbdd54f4418cda74fa037d8cf6a2.tar.gz icanhazallips-233b5b943ac5dbdd54f4418cda74fa037d8cf6a2.zip |
Diffstat (limited to 'icanhazallips.go')
-rw-r--r-- | icanhazallips.go | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/icanhazallips.go b/icanhazallips.go index 684fea8..1564ef4 100644 --- a/icanhazallips.go +++ b/icanhazallips.go @@ -2,7 +2,6 @@ package main import ( - "crypto/tls" "errors" "log" "net" @@ -156,12 +155,6 @@ func main() { log.Fatal(errBadConfig) } - tlsConfig := &tls.Config{ - MinVersion: tls.VersionTLS13, - CurvePreferences: []tls.CurveID{tls.CurveP521, tls.CurveP384, tls.CurveP256}, - PreferServerCipherSuites: true, - } - server := http.Server{ Addr: config.Addr, ReadHeaderTimeout: time.Duration(config.ReadHeaderTimeout) * time.Second, @@ -171,8 +164,7 @@ func main() { TLSNextProto: nil, ErrorLog: nil, Handler: nil, - TLSConfig: tlsConfig, } - log.Fatal(server.ListenAndServeTLS("/certs/server.cert", "/certs/server.key")) + log.Fatal(server.ListenAndServe()) } |