EepGet: Increase max header length

SSLEepGet: Set default CLI proxy type to none
This commit is contained in:
zzz
2018-04-05 12:03:57 +00:00
parent 8ea3aa8592
commit 4fbfc5d83d
2 changed files with 3 additions and 3 deletions

View File

@ -1124,7 +1124,7 @@ public class EepGet {
increment(lookahead, cur);
}
if (buf.length() > 1024)
if (buf.length() > 4096)
throw new IOException("Header line too long: " + buf.toString());
}
}

View File

@ -259,7 +259,7 @@ public class SSLEepGet extends EepGet {
boolean noVerify = false;
String proxyHost = "127.0.0.1";
int proxyPort = 0;
ProxyType ptype = ProxyType.HTTP;
ProxyType ptype = ProxyType.NONE;
boolean error = false;
Getopt g = new Getopt("ssleepget", args, "p:y:sz");
try {
@ -283,7 +283,7 @@ public class SSLEepGet extends EepGet {
case 'y':
String y = g.getOptarg().toUpperCase(Locale.US);
if (y.equals("HTTP") || y.equals("HTTPS")) {
// already set
ptype = ProxyType.HTTP;
} else if (y.equals("SOCKS4")) {
ptype = ProxyType.SOCKS4;
} else if (y.equals("SOCKS5")) {