Skip to content

Commit

Permalink
UNDERTOW-999 Undertow ALPN uses client order not server order to dete…
Browse files Browse the repository at this point in the history
…rmin next protocol when using ALPN
  • Loading branch information
stuartwdouglas committed Feb 20, 2017
1 parent 19ef3b1 commit b514894
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ public SSLEngineResult unwrap(ByteBuffer dataToUnwrap, ByteBuffer[] byteBuffers,
try {
List<String> result = ALPNHackClientHelloExplorer.exploreClientHello(dataToUnwrap.duplicate());
if(result != null) {
for(String protocol : result) {
if(applicationProtocols.contains(protocol)) {
for(String protocol : applicationProtocols) {
if(result.contains(protocol)) {
selectedApplicationProtocol = protocol;
break;
}
Expand Down

0 comments on commit b514894

Please sign in to comment.