HTTP proxy 24 hours timeout, fix #303

This commit is contained in:
Quentin McGaw
2020-11-21 01:26:02 +00:00
parent 1cc0f5fee9
commit fb62910b17
6 changed files with 17 additions and 28 deletions

View File

@@ -9,7 +9,7 @@ import (
)
func (h *handler) handleHTTPS(responseWriter http.ResponseWriter, request *http.Request) {
dialer := net.Dialer{Timeout: h.relayTimeout}
dialer := net.Dialer{}
destinationConn, err := dialer.DialContext(h.ctx, "tcp", request.Host)
if err != nil {
http.Error(responseWriter, err.Error(), http.StatusServiceUnavailable)