simple
parent
efad96aa36
commit
8903c8793b
|
|
@ -27,6 +27,7 @@ func NewServer(c *Config) *Server {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||||
|
log.Println(r.Method, r.Host)
|
||||||
switch r.Method {
|
switch r.Method {
|
||||||
case http.MethodConnect:
|
case http.MethodConnect:
|
||||||
s.Connect(w, r)
|
s.Connect(w, r)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue