Compare commits

...

3 Commits

2 changed files with 3 additions and 2 deletions

View File

@ -143,8 +143,9 @@ public class LookupDest {
* TODO: does not support I2CP options.
*/
public static void main(String args[]) {
if (args.length != 1) {
if (args.length < 1) {
System.err.println("Usage: LookupDest hostname|b32");
System.err.println("Usage: LookupDest -d hostname");
System.exit(1);
}
if (args[0].length() == 1) {

View File

@ -258,7 +258,7 @@ public class FloodfillNetworkDatabaseFacade extends KademliaNetworkDatabaseFacad
boolean shouldThrottleBurstLookup(Hash from, TunnelId id) {
// null before startup
return _lookupThrottler == null || _lookupThrottlerBurst.shouldThrottle(from, id);
return _lookupThrottlerBurst == null || _lookupThrottlerBurst.shouldThrottle(from, id);
}
/**