From c4a2695b69f4c45d3b779db62bbba6d67c9f43c3 Mon Sep 17 00:00:00 2001 From: Hcat Date: Thu, 23 Dec 2021 14:32:10 +0800 Subject: [PATCH] Update MultiplayerPage.java Replace the stun server to solve the problem of slow and inaccurate detection --- .../java/org/jackhuang/hmcl/ui/multiplayer/MultiplayerPage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/multiplayer/MultiplayerPage.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/multiplayer/MultiplayerPage.java index 392df171a..d319bb4ef 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/multiplayer/MultiplayerPage.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/multiplayer/MultiplayerPage.java @@ -134,7 +134,7 @@ public class MultiplayerPage extends DecoratorAnimatedPage implements DecoratorP private void testNAT() { Task.supplyAsync(() -> { - DiscoveryTest tester = new DiscoveryTest(null, 0, "stun.stunprotocol.org", 3478); + DiscoveryTest tester = new DiscoveryTest(null, 0, "stun.miwifi.com", 3478); return tester.test(); }).whenComplete(Schedulers.javafx(), (info, exception) -> { if (exception == null) {