protected void waitForPings(int count) throws SQLException, InterruptedException {
PreparedStatement ps = DatabaseConnection.getInstance().prepare("SELECT COUNT(*) FROM domainPinglog");
- while (true) {
+ long start = System.currentTimeMillis();
+ while (System.currentTimeMillis() - start < 10000) {
ResultSet rs = ps.executeQuery();
rs.next();
if (rs.getInt(1) >= count) {
String content1 = IOUtils.readURL(openConnection);
csrf = getCSRF(1, content1);
- Pattern p = Pattern.compile("cacert-([A-Za-z0-9]+) IN TXT ([A-Za-z0-9]+)");
+ Pattern p = Pattern.compile("([A-Za-z0-9]+)._cacert._auth IN TXT ([A-Za-z0-9]+)");
Matcher m = p.matcher(content1);
m.find();
return m;