mirror of
https://github.com/rancher/dynamiclistener.git
synced 2025-06-27 15:16:58 +00:00
Merge pull request #19 from ibuildthecloud/master
For web browser based requests do not consider IPs in host headers
This commit is contained in:
commit
1e67d402dc
@ -337,6 +337,12 @@ func (l *listener) cacheHandler() http.Handler {
|
||||
|
||||
ip := net.ParseIP(h)
|
||||
if len(ip) > 0 {
|
||||
for _, v := range req.Header["User-Agent"] {
|
||||
if strings.Contains(strings.ToLower(v), "mozilla") {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
l.updateCert(h)
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user