Skip to content

Commit

Permalink
SLLS-18 Listen only on loopback address
Browse files Browse the repository at this point in the history
  • Loading branch information
jblievremont committed Feb 4, 2021
1 parent 0881db6 commit d4bcee6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import com.google.gson.Gson;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.InetAddress;
import java.net.URISyntaxException;
import java.nio.charset.StandardCharsets;
import java.util.Collections;
Expand Down Expand Up @@ -95,6 +96,7 @@ public void init(String ideName, String clientVersion, @Nullable String workspac
while(port < 0 && triedPort <= ENDING_PORT) {
try {
startedServer = ServerBootstrap.bootstrap()
.setLocalAddress(InetAddress.getLoopbackAddress())
.setListenerPort(triedPort)
.setSocketConfig(socketConfig)
.addFilterFirst("CORS", new CorsFilter())
Expand Down

0 comments on commit d4bcee6

Please sign in to comment.