/*-
* ============LICENSE_START=======================================================
* Copyright (C) 2016-2018 Ericsson. All rights reserved.
- * Modifications Copyright (C) 2019-2020 Nordix Foundation.
+ * Modifications Copyright (C) 2019-2020,2023 Nordix Foundation.
* Modifications Copyright (C) 2021 AT&T Intellectual Property. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
restConsumerProperties.getName(),
restConsumerProperties.isHttps(),
restConsumerProperties.getHost(),
- restConsumerProperties.getPort(), null, true, false);
+ restConsumerProperties.getPort(),
+ restConsumerProperties.isSniHostCheck(),
+ null,
+ true,
+ false
+ );
+
if (restConsumerProperties.isAaf()) {
server.addFilterClass(null, ApexRestServerAafFilter.class.getName());
}