Changeset 3d38522
- Timestamp:
- Aug 9, 2017 9:24:02 PM (3 years ago)
- Branches:
- master
- Children:
- 51d4827
- Parents:
- 2441484
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
apps/BOB/src/net/i2p/BOB/MUXlisten.java
r2441484 r3d38522 46 46 private final String N; 47 47 private ServerSocket listener; 48 private final int backlog = 50; // should this be more? less?48 private static final int backlog = 50; // should this be more? less? 49 49 private final boolean go_out; 50 50 private final boolean come_in; -
apps/i2psnark/java/src/org/klomp/snark/dht/KRPC.java
r2441484 r3d38522 847 847 * @return success 848 848 */ 849 /**** 849 850 private boolean sendError(NodeInfo nInfo, MsgID msgID, int err, String msg) { 850 851 if (_log.shouldLog(Log.INFO)) … … 857 858 return sendError(nInfo, msgID, map); 858 859 } 860 ****/ 859 861 860 862 // Low-level send methods -
apps/imagegen/imagegen/webapp/src/main/java/net/i2p/imagegen/RandomArt.java
r2441484 r3d38522 246 246 //base += mod * 16; 247 247 //base += mod * 16 * 256; 248 base += mod * 5 * 256 * 256;248 base += mod * (5 * 256 * 256L); 249 249 } 250 250 if (base > 0xffffff || base < 0) -
apps/routerconsole/java/src/net/i2p/router/news/NewsManager.java
r2441484 r3d38522 191 191 192 192 private List<NewsEntry> parseInitialNews() { 193 NewsEntry entry = new NewsEntry();194 193 File file = new File(_context.getBaseDir(), "docs/initialNews/initialNews.xml"); 195 194 Reader reader = null; -
apps/routerconsole/java/src/net/i2p/router/web/ProfileOrganizerRenderer.java
r2441484 r3d38522 147 147 } 148 148 buf.append("<td align=\"right\">"); 149 String v = info .getOption("router.version");149 String v = info != null ? info.getOption("router.version") : null; 150 150 if (v != null) 151 151 buf.append(DataHelper.stripHTML(v)); -
apps/routerconsole/java/src/net/i2p/router/web/SybilRenderer.java
r2441484 r3d38522 234 234 Map<Hash, TunnelPool> clientInboundPools = _context.tunnelManager().getInboundClientPools(); 235 235 List<Hash> destinations = new ArrayList<Hash>(clientInboundPools.keySet()); 236 boolean debug = _context.getBooleanProperty(HelperBase.PROP_ADVANCED);236 //boolean debug = _context.getBooleanProperty(HelperBase.PROP_ADVANCED); 237 237 for (Hash client : destinations) { 238 238 boolean isLocal = _context.clientManager().isLocal(client); … … 319 319 } 320 320 321 double avg = total / (sz * sz / 2 );321 double avg = total / (sz * sz / 2d); 322 322 buf.append("<h3 class=\"sybils\">Average Floodfill Distance is ").append(fmt.format(avg)).append("</h3>"); 323 323 -
apps/sam/java/src/net/i2p/sam/SAMv3Handler.java
r2441484 r3d38522 174 174 try { 175 175 Socket socket = getClientSocket().socket(); 176 InputStream in = socket.getInputStream();177 178 176 StringBuilder buf = new StringBuilder(1024); 179 177 boolean gotFirstLine = false; -
apps/susimail/src/src/i2p/susi/webmail/WebMail.java
r2441484 r3d38522 2050 2050 sessionObject.error += e.getMessage(); 2051 2051 } 2052 String boundary = "_=" +(int)(Math.random()*Integer.MAX_VALUE)+""+(int)(Math.random()*Integer.MAX_VALUE);2052 String boundary = "_=" + I2PAppContext.getGlobalContext().random().nextLong(); 2053 2053 boolean multipart = false; 2054 2054 if( sessionObject.attachments != null && !sessionObject.attachments.isEmpty() ) { -
core/java/src/net/i2p/crypto/KeyStoreUtil.java
r2441484 r3d38522 600 600 } 601 601 Object[] rv = SelfSignedGenerator.generate(cname, ou, null, "I2P Anonymous Network", null, null, validDays, type); 602 PublicKey jpub = (PublicKey) rv[0];602 //PublicKey jpub = (PublicKey) rv[0]; 603 603 PrivateKey jpriv = (PrivateKey) rv[1]; 604 604 X509Certificate cert = (X509Certificate) rv[2]; 605 X509CRL crl = (X509CRL) rv[3];605 //X509CRL crl = (X509CRL) rv[3]; 606 606 List<X509Certificate> certs = Collections.singletonList(cert); 607 607 storePrivateKey(ks, ksPW, alias, keyPW, jpriv, certs); -
core/java/src/net/i2p/crypto/SelfSignedGenerator.java
r2441484 r3d38522 714 714 private static final void test(String name, SigType type) throws Exception { 715 715 Object[] rv = generate("cname@example.com", "ou", "o", null, "st", "c", 3652, type); 716 PublicKey jpub = (PublicKey) rv[0];716 //PublicKey jpub = (PublicKey) rv[0]; 717 717 PrivateKey jpriv = (PrivateKey) rv[1]; 718 718 X509Certificate cert = (X509Certificate) rv[2]; -
core/java/src/net/i2p/util/EepGet.java
r2441484 r3d38522 1397 1397 // This is kindof a hack, but if we are downloading a gzip file 1398 1398 // we don't want to transparently gunzip it and save it as a .gz file. 1399 (!path.endsWith(".gz")) && (!path.endsWith(".tgz"))) 1399 path == null || 1400 (!path.endsWith(".gz") && !path.endsWith(".tgz"))) 1400 1401 buf.append("gzip"); 1401 1402 buf.append("\r\n"); -
router/java/src/net/i2p/data/router/RouterKeyGenerator.java
r2441484 r3d38522 229 229 int st = 0; 230 230 if (args.length > 1 && (args[0].startsWith("+") || args[0].startsWith("-"))) { 231 now += Integer.parseInt(args[0]) * 24*60*60*1000L;231 now += Integer.parseInt(args[0]) * (24*60*60*1000L); 232 232 st++; 233 233 } -
router/java/src/net/i2p/router/RouterVersion.java
r2441484 r3d38522 19 19 public final static String ID = "Monotone"; 20 20 public final static String VERSION = CoreVersion.VERSION; 21 public final static long BUILD = 0;21 public final static long BUILD = 1; 22 22 23 23 /** for example "-test" */ -
router/java/src/net/i2p/router/startup/WorkingDir.java
r2441484 r3d38522 463 463 boolean rv = true; 464 464 465 byte buf[] = new byte[4096];466 465 FileInputStream in = null; 467 466 FileOutputStream out = null;
Note: See TracChangeset
for help on using the changeset viewer.