http dns noop 直接返回传入的host
This commit is contained in:
@@ -26,13 +26,13 @@ class HttpDnsNoop implements IMogoHttpDns {
|
||||
|
||||
@Override
|
||||
public String getCachedHttpDnsIps( String host,int type ) {
|
||||
return null;
|
||||
return host;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void getHttpDnsIp( String host,int type, boolean useCache, IHttpDnsCallback callback ) {
|
||||
if ( callback != null ) {
|
||||
callback.onParsed( null );
|
||||
callback.onParsed( host );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user