Skip to content

Commit

Permalink
Fix erroneous comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
eyedeekay committed Jul 18, 2023
1 parent faddfb9 commit 10022fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ private long handleRequest(BuildMessageState state, long now) {
_log.warn("Drop request, we are denying tunnels due to congestion: " + from);
RouterInfo fromRI = _context.netDb().lookupRouterInfoLocally(from);
if (fromRI != null){
String fromVersion = fromRI.getVersion().replaceAll(".", "");
String fromVersion = fromRI.getVersion();
// if fromVersion is greater than 0.9.58, then then ban the router due to it disrespecting our
// congestion flags
if (fromVersion != null){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
*/
public abstract class TunnelPeerSelector extends ConnectChecker {

private static final String DEFAULT_EXCLUDE_CAPS = String.valueOf(Router.CAPABILITY_BW12)+String.valueOf(Router.CAPABILITY_CONGESTION_SEVERE);
private static final String DEFAULT_EXCLUDE_CAPS = String.valueOf(Router.CAPABILITY_BW12)+String.valueOf(Router.CAPABILITY_CONGESTION_SEVERE);//+String.valueOf(Router.CAPABILITY_CONGESTION_MODERATE);

protected TunnelPeerSelector(RouterContext context) {
super(context);
Expand Down

0 comments on commit 10022fb

Please sign in to comment.