Skip to content

Commit

Permalink
Merge pull request #96 from marnberg/twoAuth
Browse files Browse the repository at this point in the history
fixes bug where the cert is set as host
  • Loading branch information
marnberg authored Mar 1, 2022
2 parents 18b979a + 3b20784 commit fbe5c87
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 fbe5c87

Please sign in to comment.