Changeset d3c28a6 for apps


Ignore:
Timestamp:
May 5, 2018 10:21:01 PM (2 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
543e5bd2
Parents:
d8516862
Message:

Streaming: Don't send HTTP response to HTTPS request

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/streaming/java/src/net/i2p/client/streaming/impl/ConnectionManager.java

    rd8516862 rd3c28a6  
    291291            }
    292292
    293             boolean reset = resp == null || resp.equals("reset") || resp.length() <= 0;
     293            boolean reset = resp == null || resp.equals("reset") || resp.length() <= 0 ||
     294                            synPacket.getLocalPort() == 443;
    294295            boolean http = !reset && "http".equals(resp);
    295296            boolean custom = !(reset || http);
Note: See TracChangeset for help on using the changeset viewer.