Browse Source

Finalized conn cut

Toby Chui 2 months ago
parent
commit
223706fa9f
2 changed files with 1 additions and 3 deletions
  1. 0 2
      mod/dynamicproxy/Server.go
  2. 1 1
      web/components/rproot.html

+ 0 - 2
mod/dynamicproxy/Server.go

@@ -222,12 +222,10 @@ func (h *ProxyHandler) handleRootRouting(w http.ResponseWriter, r *http.Request)
 		h.Parent.logRequest(r, false, 444, "root-noresponse", domainOnly)
 		hijacker, ok := w.(http.Hijacker)
 		if !ok {
-			http.Error(w, "Hijacking not supported", http.StatusInternalServerError)
 			return
 		}
 		conn, _, err := hijacker.Hijack()
 		if err != nil {
-			http.Error(w, err.Error(), http.StatusInternalServerError)
 			return
 		}
 		conn.Close()

+ 1 - 1
web/components/rproot.html

@@ -41,7 +41,7 @@
                     <div class="ui radio defaultsite checkbox">
                         <input type="radio" name="defaultsiteOption" value="closeresp">
                         <label>Close Connection<br>
-                            <small>Close the connection without any response</small>
+                            <small>Close the connection without any response or in TLS mode, send an empty response</small>
                         </label>
                     </div>
                 </div>