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...");
|
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();
|
||||||
|
|||||||
Reference in new issue
Block a user