修改httpdns解析实现,目前以域名转域名方式访问

This commit is contained in:
tongchenfei
2021-01-18 18:25:02 +08:00
parent 568ae741ee
commit b4c6fb2b84
6 changed files with 52 additions and 3 deletions

View File

@@ -66,6 +66,16 @@ public interface IMogoHttpDns extends IProvider {
@Keep
void getHttpDnsIp(String host, int type, boolean useCache, IHttpDnsCallback callback);
/**
* 同步进行dns解析无需回调
* @param host
* @param type
* @param useCache
*
* @return ip:port
*/
String syncGetHttpDns(String host, int type, boolean useCache);
// /**
// * 监听 ttl 回调
// *