修改httpdns解析实现,目前以域名转域名方式访问
This commit is contained in:
@@ -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 回调
|
||||
// *
|
||||
|
||||
Reference in New Issue
Block a user