I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit e16c0a32 authored by zzz's avatar zzz
Browse files

i2ptunnel: Disable gzip for streamr server

parent ef664571
No related branches found
No related tags found
No related merge requests found
...@@ -837,6 +837,8 @@ public class TunnelController implements Logging { ...@@ -837,6 +837,8 @@ public class TunnelController implements Logging {
if (type.equals(TYPE_HTTP_SERVER)) { if (type.equals(TYPE_HTTP_SERVER)) {
if (!_config.containsKey(OPT_LIMIT_ACTION)) if (!_config.containsKey(OPT_LIMIT_ACTION))
_config.setProperty(OPT_LIMIT_ACTION, "http"); _config.setProperty(OPT_LIMIT_ACTION, "http");
}
if (type.equals(TYPE_HTTP_SERVER) || type.equals(TYPE_STREAMR_SERVER)) {
String tgzip = _config.getProperty(PROP_TUN_GZIP); String tgzip = _config.getProperty(PROP_TUN_GZIP);
if (tgzip == null || Boolean.valueOf(tgzip)) { if (tgzip == null || Boolean.valueOf(tgzip)) {
// Web server will gzip // Web server will gzip
...@@ -846,8 +848,6 @@ public class TunnelController implements Logging { ...@@ -846,8 +848,6 @@ public class TunnelController implements Logging {
if (!_config.containsKey(OPT_I2CP_GZIP)) if (!_config.containsKey(OPT_I2CP_GZIP))
_config.setProperty(OPT_I2CP_GZIP, "false"); _config.setProperty(OPT_I2CP_GZIP, "false");
} }
}
if (type.equals(TYPE_HTTP_SERVER) || type.equals(TYPE_STREAMR_SERVER)) {
if (!_config.containsKey(OPT_BUNDLE_REPLY)) if (!_config.containsKey(OPT_BUNDLE_REPLY))
_config.setProperty(OPT_BUNDLE_REPLY, "false"); _config.setProperty(OPT_BUNDLE_REPLY, "false");
} else if (!isClient(type)) { } else if (!isClient(type)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment