Ignore case when checking network name.

This commit is contained in:
ragnarok
2005-09-30 05:20:41 +00:00
committed by zzz
parent c528e4db03
commit 411ca5e6c3

View File

@ -52,7 +52,7 @@ public class PetNameNamingService extends NamingService {
public Destination lookup(String hostname) { public Destination lookup(String hostname) {
PetName name = _petnameDb.get(hostname); PetName name = _petnameDb.get(hostname);
if (name != null && name.getNetwork().equals("i2p")) { if (name != null && name.getNetwork().equalsIgnoreCase("i2p")) {
return lookupBase64(name.getLocation()); return lookupBase64(name.getLocation());
} else { } else {
return lookupBase64(hostname); return lookupBase64(hostname);