Skip to content

Commit

Permalink
Merge pull request #88 from larrys/master
Browse files Browse the repository at this point in the history
Remove the IP reputation checks.
  • Loading branch information
R. Tyler Croy committed Mar 3, 2016
2 parents 68502a4 + 3d41241 commit d9881f6
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/main/java/org/jenkinsci/account/Application.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.google.common.base.Joiner;
import com.google.common.base.Strings;
import com.google.common.collect.Lists;
import com.google.common.net.InetAddresses;
import jiraldapsyncer.JiraLdapSyncer;
import jiraldapsyncer.ServiceLocator;
Expand Down Expand Up @@ -250,15 +249,6 @@ public HttpResponse doDoSignup(
}
}

// IP Reputation Checks

String reversedIp = Joiner.on(".").join(Lists.reverse(Arrays.asList(ip.split("\\."))));
for(String rblHost : Arrays.asList("rbl.megarbl.net", "zen.spamhaus.org")) {
for (String txt : getTxtRecord(reversedIp + "." + rblHost)) {
blockReasons.add("RBL " + rblHost + ": " + txt);
}
}

final DirContext con = connect();
try {
if(ldapObjectExists(con, "(id={0})", userid)) {
Expand Down

0 comments on commit d9881f6

Please sign in to comment.