make the api listen on 0.0.0.0
This commit is contained in:
1 parent
8325256e5e
commit
6cceb7da16
1 file changed
+1
-2
@@ -28,8 +28,7 @@ public class WebApi {
|
||||
logger.info("Starting web server...");
|
||||
|
||||
try {
|
||||
InetAddress localHost = InetAddress.getLoopbackAddress();
|
||||
InetSocketAddress sockAddr = new InetSocketAddress(localHost, port);
|
||||
InetSocketAddress sockAddr = new InetSocketAddress(port);
|
||||
server = HttpServer.create(sockAddr, 0);
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
|
||||
Reference in new issue
Block a user