[unifi] Use createHttpClient (#14474)

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
lolodomo 2023-02-22 17:22:31 +01:00 committed by GitHub
parent 1c35ebcd4e
commit 884b5e9e83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -50,9 +50,7 @@ public class UniFiThingHandlerFactory extends BaseThingHandlerFactory {
@Activate
public UniFiThingHandlerFactory(@Reference final HttpClientFactory httpClientFactory) {
// [wip] mgb: disabled due to missing common name attributes with certs
// this.httpClient = httpClientFactory.getCommonHttpClient();
httpClient = new HttpClient(new SslContextFactory.Client(true));
httpClient = httpClientFactory.createHttpClient(BINDING_ID, new SslContextFactory.Client(true));
try {
httpClient.start();
} catch (final Exception e) {