mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-09-24 21:35:15 +00:00
Use a loopback address instead of 0.0.0.0
This commit is contained in:
@@ -17,6 +17,7 @@ package org.jboss.fuse.mvnd.client;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.net.InetAddress;
|
||||
import java.net.InetSocketAddress;
|
||||
import java.net.Socket;
|
||||
import java.nio.channels.SocketChannel;
|
||||
@@ -362,7 +363,7 @@ public class DaemonConnector {
|
||||
}
|
||||
|
||||
public DaemonConnection<Message> connect(int port) throws DaemonException.ConnectException {
|
||||
InetSocketAddress address = new InetSocketAddress(port);
|
||||
InetSocketAddress address = new InetSocketAddress(InetAddress.getLoopbackAddress(), port);
|
||||
try {
|
||||
LOGGER.debug("Trying to connect to address {}.", address);
|
||||
SocketChannel socketChannel = SocketChannel.open();
|
||||
|
Reference in New Issue
Block a user