Shush pls
This commit is contained in:
4
main.go
4
main.go
@@ -65,11 +65,11 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
if toWhitelist(s.bypass, r.URL.Host) {
|
if toWhitelist(s.bypass, r.URL.Host) {
|
||||||
logger.Log("Bypassing", r.URL.String())
|
//logger.Log("Bypassing", r.URL.String())
|
||||||
s.passthrough(w, r)
|
s.passthrough(w, r)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
logger.Log("Proxying", r.URL.String())
|
//logger.Log("Proxying", r.URL.String())
|
||||||
// proxy via stuncaddsies
|
// proxy via stuncaddsies
|
||||||
s.handleHTTP(w, r)
|
s.handleHTTP(w, r)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user