Fix pairing issue due to picking up a final local variable instead of a class member

This commit is contained in:
Cameron Gutman 2020-07-06 02:30:49 -05:00
parent 0101d0a1bd
commit 9af6febca5

View File

@ -159,7 +159,7 @@ public class NvHTTP {
public boolean verify(String hostname, SSLSession session) {
try {
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
return true;
}