simple
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user