http dns noop 直接返回传入的host

This commit is contained in:
tongchenfei
2020-12-30 17:10:09 +08:00
parent 5d5a4be8bf
commit 11fb2d54e5

View File

@@ -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 );
}
}