Changeset 4fbfc5d


Ignore:
Timestamp:
Apr 5, 2018 12:03:57 PM (2 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
43e6bb7
Parents:
8ea3aa8
Message:

EepGet?: Increase max header length
SSLEepGet: Set default CLI proxy type to none

Location:
core/java/src/net/i2p/util
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/util/EepGet.java

    r8ea3aa8 r4fbfc5d  
    11251125            }
    11261126           
    1127             if (buf.length() > 1024)
     1127            if (buf.length() > 4096)
    11281128                throw new IOException("Header line too long: " + buf.toString());
    11291129        }
  • core/java/src/net/i2p/util/SSLEepGet.java

    r8ea3aa8 r4fbfc5d  
    260260        String proxyHost = "127.0.0.1";
    261261        int proxyPort = 0;
    262         ProxyType ptype = ProxyType.HTTP;
     262        ProxyType ptype = ProxyType.NONE;
    263263        boolean error = false;
    264264        Getopt g = new Getopt("ssleepget", args, "p:y:sz");
     
    284284                    String y = g.getOptarg().toUpperCase(Locale.US);
    285285                    if (y.equals("HTTP") || y.equals("HTTPS")) {
    286                         // already set
     286                        ptype = ProxyType.HTTP;
    287287                    } else if (y.equals("SOCKS4")) {
    288288                        ptype = ProxyType.SOCKS4;
Note: See TracChangeset for help on using the changeset viewer.