Skip to content

Commit

Permalink
fixes bug where the cert is set as host
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Arnberg committed Mar 1, 2022
1 parent 4dfeca2 commit 3b20784
Showing 1 changed file with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,17 @@ public void call(ConclaveClient.Status status) {
});

mAferoSofthub = AferoSofthub.acquireInstance(this, mAferoClient, "appId: " + BuildConfig.APPLICATION_ID);
mAferoSofthub.setService(BuildConfig.AFERO_SOFTHUB_SERVICE);
mAferoSofthub.setHost(BuildConfig.AFERO_SERVICE_HOSTNAME);
mAferoSofthub.setHost(BuildConfig.AFERO_SOFTHUB_AUTHENTICATOR_CERT);
if (BuildConfig.AFERO_SOFTHUB_SERVICE != null) {
mAferoSofthub.setService(BuildConfig.AFERO_SOFTHUB_SERVICE);
}

if (BuildConfig.AFERO_SERVICE_HOSTNAME != null) {
mAferoSofthub.setHost(BuildConfig.AFERO_SERVICE_HOSTNAME);
}

if (BuildConfig.AFERO_SOFTHUB_AUTHENTICATOR_CERT != null) {
mAferoSofthub.setAuthCert(BuildConfig.AFERO_SOFTHUB_AUTHENTICATOR_CERT);
}

mAferoSofthub.observeSetupModeDevices()
.observeOn(AndroidSchedulers.mainThread())
Expand Down

0 comments on commit 3b20784

Please sign in to comment.