Don't actually pull this - I'm just submitting the PR to highlight the Flashlight changes

This integrates the new flashlight, without MITM and with the ability to tunnel XMPP and other such protocol over CloudFlare.
Yeah exactly!

On Sunday, June 8, 2014, oxtoacart <notifications@github.com> wrote:

> In src/main/java/org/lantern/util/PublicIpAddress.java:
>
> >          }
> >      }
> >
> > +    @Subscribe
> > +    public void onNewS3Config(final S3Config config) {
> > +        masqueradeHost = new HttpHost(config.getMasqueradeHost(), 443, "https");
>
> Oh, model always has an S3Config! For some reason I thought that it would
> be null until we've fetched it the first time.
> … <#1467d39d5fec6666_>
> On Jun 8, 2014 3:24 PM, "myleshorton" <notifications@github.com
> <javascript:_e(%7B%7D,'cvml','notifications@github.com');>> wrote: In
> src/main/java/org/lantern/util/PublicIpAddress.java: > } > } > > +
> @Subscribe <https://github.com/Subscribe> > + public void
> onNewS3Config(final S3Config config) { > + masqueradeHost = new
> HttpHost(config.getMasqueradeHost(), 443, "https"); It won't be null
> because the default value is, well, the default value! …
> <#1467d2794d15a198_> On Sunday, June 8, 2014, oxtoacart <
> notifications@github.com
> <javascript:_e(%7B%7D,'cvml','notifications@github.com');>> wrote: In
> src/main/java/org/lantern/util/PublicIpAddress.java: > } > } > > +
> @Subscribe <https://github.com/Subscribe> <https://github.com/Subscribe>
> > + public void onNewS3Config(final S3Config config) { > + masqueradeHost =
> new HttpHost(config.getMasqueradeHost(), 443, "https"); I don't think so,
> because I actually initialize masqueradeHost with a default value in
> PublicIpAddress. So, even if lookupSafe() is called before we've gotten an
> S3 config (which I believe is possible), it will have a masqueradeHost
> available. If I were grabbing it from the model, it would be null at this
> point. Using the event allows me to override the default value — Reply to
> this email directly or view it on GitHub <
> https://github.com/getlantern/lantern/pull/1568/files#r13524366>. — Reply
> to this email directly or view it on GitHub <
> https://github.com/getlantern/lantern/pull/1568/files#r13525992>.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/getlantern/lantern/pull/1568/files#r13526096>.
>