matches method
Whether a connection attempt to candidateHost:candidatePort is
approved by this lane.
Implementation
bool matches(String candidateHost, int candidatePort) {
if (port != null && port != candidatePort) return false;
if (host.startsWith('.')) {
final apex = host.substring(1);
return candidateHost == apex || candidateHost.endsWith(host);
}
return candidateHost == host;
}