All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bytesgo.littleproxy.dns.DnsSecServerResolver Maven / Gradle / Ivy

Go to download

LittleProxy is a high performance HTTP proxy written in Java and using the Netty networking framework.

The newest version!
package com.bytesgo.littleproxy.dns;

import java.net.InetSocketAddress;
import java.net.UnknownHostException;
import org.littleshoot.dnssec4j.VerifiedAddressFactory;
import com.bytesgo.littleproxy.host.HostResolver;

public class DnsSecServerResolver implements HostResolver {
  @Override
  public InetSocketAddress resolve(String host, int port) throws UnknownHostException {
    return VerifiedAddressFactory.newInetSocketAddress(host, port, true);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy