Skip to content

Commit fc15cdd

Browse files
committed
Merge pull request #318 from jekh/default-to-littleproxy-in-standalone
Defaulting to LittleProxy-based implementation in standalone mode
2 parents 865c0d5 + fa853c1 commit fc15cdd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,11 @@ The proxy is programmatically controlled via a REST interface or by being embedd
8888

8989
### REST API
9090

91-
**New in 2.1:** The REST API now supports LittleProxy. When running browsermob-proxy, specify `--use-littleproxy true` to enable LittleProxy support.
91+
**New in 2.1:** The REST API now supports LittleProxy. As of 2.1.0-beta-3, LittleProxy is the default implementation. (You may specify `--use-littleproxy false` to disable LittleProxy in favor of the legacy Jetty 5-based implementation.)
9292

9393
To get started, first start the proxy by running `browsermob-proxy` or `browsermob-proxy.bat` in the bin directory:
9494

95-
$ sh browsermob-proxy -port 9090 --use-littleproxy true
95+
$ sh browsermob-proxy -port 9090
9696
INFO 05/31 03:12:48 o.b.p.Main - Starting up...
9797
2011-05-30 20:12:49.517:INFO::jetty-7.3.0.v20110203
9898
2011-05-30 20:12:49.689:INFO::started o.e.j.s.ServletContextHandler{/,null}

browsermob-rest/src/main/java/net/lightbody/bmp/proxy/guice/ConfigModule.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public void configure(Binder binder) {
5050
parser.accepts("use-littleproxy", "Use the littleproxy backend instead of the legacy Jetty 5-based implementation")
5151
.withOptionalArg()
5252
.ofType(Boolean.class)
53-
.defaultsTo(false);
53+
.defaultsTo(true);
5454

5555
parser.acceptsAll(Arrays.asList("help", "?"), "This help text");
5656

@@ -70,9 +70,9 @@ public void configure(Binder binder) {
7070
// temporary, until REST API is replaced
7171
LegacyProxyServerProvider.useLittleProxy = useLittleProxy.value(options);
7272
if (LegacyProxyServerProvider.useLittleProxy) {
73-
System.out.println("Running BrowserMob Proxy using LittleProxy implementation.");
73+
System.out.println("Running BrowserMob Proxy using LittleProxy implementation. To revert to the legacy implementation, run the proxy with the command-line option '--use-littleproxy false'.");
7474
} else {
75-
System.out.println("Running BrowserMob Proxy using legacy implementation. To enable the LittleProxy implementation, run the proxy with the command-line option '--use-littleproxy true'.");
75+
System.out.println("Running BrowserMob Proxy using legacy implementation.");
7676
}
7777

7878
List<Integer> ports = options.valuesOf(proxyPortRange);

0 commit comments

Comments
 (0)