Skip to content

Commit

Permalink
Create HttpServer non-locally
Browse files Browse the repository at this point in the history
  • Loading branch information
PadowYT2 committed Jun 23, 2024
1 parent 4be4d6f commit 81d97cd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public void loadConfig() {

public void startServer() {
try {
server = HttpServer.create(new InetSocketAddress(config.getInt("port")), 0);
server = HttpServer.create(new InetSocketAddress("0.0.0.0", config.getInt("port")), 0);
server.createContext("/", exchange -> exchange.sendResponseHeaders(404, -1));
server.createContext("/" + config.getString("link_route"), new LinkHandler(config));
server.createContext("/callback", new CallbackHandler(config));
Expand Down

0 comments on commit 81d97cd

Please sign in to comment.