Skip to content

Commit

Permalink
add cipher suite
Browse files Browse the repository at this point in the history
  • Loading branch information
tiero committed Sep 7, 2021
1 parent 13f08e2 commit 0326713
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pkg/torproxy/torproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,17 @@ func (tp *TorProxy) Serve(address string, options *TLSOptions) error {
tlsConfig = &tls.Config{
NextProtos: []string{"http/1.1", http2.NextProtoTLS, "h2-14"}, // h2-14 is just for compatibility. will be eventually removed.
Certificates: []tls.Certificate{certificate},
CipherSuites: []uint16{
tls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,
tls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,
tls.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,
tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA,
tls.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,
tls.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA,
tls.TLS_RSA_WITH_AES_128_CBC_SHA,
tls.TLS_RSA_WITH_AES_256_CBC_SHA,
},
PreferServerCipherSuites: true,
}
} else {

Expand Down

0 comments on commit 0326713

Please sign in to comment.