disable HTTP/2 since it's not upgradeable to tunnel
This commit is contained in:
parent
79b05151ca
commit
e96356bdaa
11
main.go
11
main.go
|
@ -7,6 +7,7 @@ import (
|
||||||
"flag"
|
"flag"
|
||||||
"time"
|
"time"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
"crypto/tls"
|
||||||
)
|
)
|
||||||
|
|
||||||
func perror(msg string) {
|
func perror(msg string) {
|
||||||
|
@ -62,10 +63,12 @@ func run() int {
|
||||||
return 3
|
return 3
|
||||||
}
|
}
|
||||||
|
|
||||||
var server http.Server
|
server := http.Server{
|
||||||
server.Addr = args.bind_address
|
Addr: args.bind_address,
|
||||||
server.Handler = NewProxyHandler(args.timeout, auth, proxyLogger)
|
Handler: NewProxyHandler(args.timeout, auth, proxyLogger),
|
||||||
server.ErrorLog = log.New(logWriter, "HTTPSRV : ", log.LstdFlags | log.Lshortfile)
|
ErrorLog: log.New(logWriter, "HTTPSRV : ", log.LstdFlags | log.Lshortfile),
|
||||||
|
TLSNextProto: make(map[string]func(*http.Server, *tls.Conn, http.Handler)), // No HTTP/2
|
||||||
|
}
|
||||||
|
|
||||||
mainLogger.Info("Starting proxy server...")
|
mainLogger.Info("Starting proxy server...")
|
||||||
if args.cert != "" {
|
if args.cert != "" {
|
||||||
|
|
Loading…
Reference in New Issue