aboutsummaryrefslogtreecommitdiffstats
path: root/icanhazallips.go
diff options
context:
space:
mode:
authorterminaldweller <devi@terminaldweller.com>2025-01-14 21:13:58 +0000
committerterminaldweller <devi@terminaldweller.com>2025-01-14 21:13:58 +0000
commit233b5b943ac5dbdd54f4418cda74fa037d8cf6a2 (patch)
tree7998cace15d0e90df120cd7e2815b700fb05af20 /icanhazallips.go
parentfixed a typo in the subject name for the self-signed cert (diff)
downloadicanhazallips-233b5b943ac5dbdd54f4418cda74fa037d8cf6a2.tar.gz
icanhazallips-233b5b943ac5dbdd54f4418cda74fa037d8cf6a2.zip
using nginx as reverse proxy nowHEADmain
Diffstat (limited to 'icanhazallips.go')
-rw-r--r--icanhazallips.go10
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())
}