Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove security lowering kludge. #879

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions src/freenet/node/NodeCryptoConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -240,18 +240,7 @@ public void set(Boolean val) throws InvalidConfigValueException, NodeNeedRestart
});

paddDataPackets = config.getBoolean("paddDataPackets");
securityLevels.addNetworkThreatLevelListener(new SecurityLevelListener<NETWORK_THREAT_LEVEL>() {

@Override
public void onChange(NETWORK_THREAT_LEVEL oldLevel, NETWORK_THREAT_LEVEL newLevel) {
// Might be useful for nodes which are running with a tight bandwidth quota to minimize the overhead,
// so turn it off for LOW. Otherwise is sensible.
if(newLevel == NETWORK_THREAT_LEVEL.LOW)
paddDataPackets = false;
if(oldLevel == NETWORK_THREAT_LEVEL.LOW)
paddDataPackets = true;
}
});
}

/** The number of config options i.e. the amount to increment sortOrder by */
Expand Down
Loading