mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-12 13:26:53 -04:00
Update MultiplayerPage.java
Replace the stun server to solve the problem of slow and inaccurate detection
This commit is contained in:
parent
246069cc48
commit
c4a2695b69
@ -134,7 +134,7 @@ public class MultiplayerPage extends DecoratorAnimatedPage implements DecoratorP
|
|||||||
|
|
||||||
private void testNAT() {
|
private void testNAT() {
|
||||||
Task.supplyAsync(() -> {
|
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();
|
return tester.test();
|
||||||
}).whenComplete(Schedulers.javafx(), (info, exception) -> {
|
}).whenComplete(Schedulers.javafx(), (info, exception) -> {
|
||||||
if (exception == null) {
|
if (exception == null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user