misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
evilsocket 2018-03-09 13:28:38 +01:00
parent 0f8c668f87
commit c570319d66
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
2 changed files with 7 additions and 6 deletions

View file

@ -280,9 +280,9 @@ func (s *SSLStripper) Preprocess(req *http.Request, ctx *goproxy.ProxyCtx) (redi
req.Header.Set("Host", original.Hostname)
}
// check if we need to redirect the user in order
// to make unknown session cookies expire
if s.cookies.IsClean(req) == false {
// check if we need to redirect the user in order
// to make unknown session cookies expire
log.Info("[%s] Sending expired cookies for %s to %s", core.Green("sslstrip"), core.Yellow(req.Host), req.RemoteAddr)
s.cookies.Track(req)
redir = s.cookies.Expire(req)