mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-26 22:43:05 +00:00
Fix pairing issue due to picking up a final local variable instead of a class member
This commit is contained in:
parent
0101d0a1bd
commit
9af6febca5
@ -159,7 +159,7 @@ public class NvHTTP {
|
|||||||
public boolean verify(String hostname, SSLSession session) {
|
public boolean verify(String hostname, SSLSession session) {
|
||||||
try {
|
try {
|
||||||
Certificate[] certificates = session.getPeerCertificates();
|
Certificate[] certificates = session.getPeerCertificates();
|
||||||
if (certificates.length == 1 && certificates[0].equals(serverCert)) {
|
if (certificates.length == 1 && certificates[0].equals(NvHTTP.this.serverCert)) {
|
||||||
// Allow any hostname if it's our pinned cert
|
// Allow any hostname if it's our pinned cert
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user