mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-18 18:42:46 +00:00
Don't request an explict TLS version
This commit is contained in:
parent
f7bfa63145
commit
71aadfa2f5
@ -278,7 +278,7 @@ public class NvHTTP {
|
|||||||
// Doing this each time we create a socket is required
|
// Doing this each time we create a socket is required
|
||||||
// to avoid the SSLv3 fallback that causes connection failures
|
// to avoid the SSLv3 fallback that causes connection failures
|
||||||
try {
|
try {
|
||||||
SSLContext sc = SSLContext.getInstance("TLSv1");
|
SSLContext sc = SSLContext.getInstance("TLS");
|
||||||
sc.init(keyManager, trustManager, new SecureRandom());
|
sc.init(keyManager, trustManager, new SecureRandom());
|
||||||
|
|
||||||
client.setSslSocketFactory(sc.getSocketFactory());
|
client.setSslSocketFactory(sc.getSocketFactory());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user