emiliosetiadarma commented on code in PR #6931:
URL: https://github.com/apache/nifi/pull/6931#discussion_r1100668238


##########
nifi-registry/nifi-registry-core/nifi-registry-jetty/src/main/java/org/apache/nifi/registry/jetty/JettyServer.java:
##########
@@ -147,9 +151,39 @@ private File getDocsDir(final String docsDirectory) {
     }
 
     private void configureConnectors() {
-        final ServerConnectorFactory serverConnectorFactory = new 
ApplicationServerConnectorFactory(server, properties);
-        final ServerConnector serverConnector = 
serverConnectorFactory.getServerConnector();
-        server.addConnector(serverConnector);
+        try {
+            final ServerConnectorFactory serverConnectorFactory = new 
ApplicationServerConnectorFactory(server, properties);
+            final Map<String, String> interfaces = 
properties.isHTTPSConfigured() ? properties.getHttpsNetworkInterfaces() : 
Collections.emptyMap();
+            final Set<String> interfaceNames = 
interfaces.values().stream().filter(StringUtils::isNotBlank).collect(Collectors.toSet());
+            if (properties.isHTTPSConfigured() && !interfaceNames.isEmpty()) {
+                interfaceNames.stream()
+                        // Map interface name properties to Network Interfaces
+                        .map(interfaceName -> {
+                            try {
+                                logger.error("Checking {}", interfaceName);

Review Comment:
   My bad! Forgot to remove after testing! Removing now



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@nifi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to