AdguardTeam / gomitmproxy

Simple golang mitm proxy implementation
https://adguard.com/
GNU General Public License v3.0
273 stars 53 forks source link

if req.URL.Host is no hostname #22

Open lutskboy opened 7 months ago

lutskboy commented 7 months ago

Hi my problem if req.URL.Host is no hostname req.URL.Host is ip adress

if req.URL.Host == "google.ru" not work how to use hostname in this code?