master
bel 2022-08-12 23:48:57 -06:00
parent 0918fe57dc
commit f71295b40f
2 changed files with 1 additions and 3 deletions

View File

@ -32,7 +32,7 @@ func NewServer(c *Config) *Server {
}
func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
log.Println(r.Method, r.Host)
//log.Println(r.Method, r.Host)
switch r.Method {
case http.MethodConnect:
s.Connect(w, r)

View File

@ -3,7 +3,6 @@ package main
import (
"context"
"io"
"log"
"time"
"golang.org/x/time/rate"
@ -24,7 +23,6 @@ func (tw throttledWriter) Write(b []byte) (int, error) {
if err := tw.limiter.WaitN(tw.ctx, len(b)); err != nil {
return 0, err
}
log.Printf("limited %v bytes for %v", len(b), time.Since(start))
}
return tw.w.Write(b)
}