Charles代理打开后,访问本地连接,报错
Charles Error Report
Name lookup failed for remote host
Charles failed to resolve the name of the remote host into an IP address. Check that the URL is correct.
The actual exception reported was:
java.net.UnknownHostException: a.uat.qa.nt.ctripcorp.com: nodename nor servname provided, or not known
Charles Proxy, https://www.charlesproxy.com/
可能是因为本地的host域名映射没有应用到Charles里,可以在Tools-> DNS Spoofing里配置一下域名映射,把要访问的本地域名映射到127.0.0.1