make the api listen on 0.0.0.0

This commit is contained in:
anthorob committed 2022-05-29 20:48:10 -04:00
1 parent 8325256e5e
commit 6cceb7da16
1 file changed
+1 -2
@@ -28,8 +28,7 @@ public class WebApi {
logger.info("Starting web server..."); logger.info("Starting web server...");
try { try {
InetAddress localHost = InetAddress.getLoopbackAddress(); InetSocketAddress sockAddr = new InetSocketAddress(port);
InetSocketAddress sockAddr = new InetSocketAddress(localHost, port);
server = HttpServer.create(sockAddr, 0); server = HttpServer.create(sockAddr, 0);
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();