Charles代理SSL连接不会显示主机名,仅显示ips [英] Charles proxy SSL connections won't show hostnames, only ips

查看:106
本文介绍了Charles代理SSL连接不会显示主机名,仅显示ips的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Charles来在android和ios上调试我的应用程序. 在设备上安装Charles CA之后,在安全连接上会发生一些相当奇怪的事情.

I'm using Charles to debug my apps- on both android and ios. something rather strange happens, on the secured connection, after I have installed Charles CA on the devices.

在IOS上,Charles将请求显示在连接列表中的主机名上,

On IOS, Charles will show the request to the hostname in the list of connections, and it looks great.

但是,在android上,它将仅显示IP.我必须打开请求并检查主机名标头以找出主机名,这很烦人.

However, on android, it will only show the IP. I have to open the request and check for the hostname header to figure out the hostname- and that's pretty annoying.

有什么办法解决吗?

推荐答案

API 25+的乳化器具有一个称为AndroidWifi的模拟wifi接入点: https://developer.android.com/studio/run/emulator#wi-fi

Emulators for API 25+ have a simulated wifi access point called AndroidWifi: https://developer.android.com/studio/run/emulator#wi-fi

转到模拟器的wifi设置,连接到AndroidWifi,然后按住它并选择修改网络".输入您的Charles Proxy主机名和端口.它应该连接到代理,并且您应该在请求中看到域名.

Go to your emulators wifi settings, connect to the AndroidWifi, then hold down on it and select modify network. Enter your Charles Proxy hostname and port. It should connect to the proxy and you should see domain names in the requests.

请勿使用模拟器扩展控件中提供的代理设置.

Don't use the proxy settings provided in the emulator's extended controls.

这篇关于Charles代理SSL连接不会显示主机名,仅显示ips的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆