Skip to content

Commit 02cceae

Browse files
committed
Change default listen count to one
Avoids multiple local servers showing up on lan - and for 99% of servers one will suffice either way
1 parent ea967a0 commit 02cceae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/org/geysermc/geyser/network/netty/GeyserServer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public final class GeyserServer {
119119

120120
public GeyserServer(GeyserImpl geyser, int threadCount) {
121121
this.geyser = geyser;
122-
this.listenCount = Bootstraps.isReusePortAvailable() ? Integer.getInteger("Geyser.ListenCount", 2) : 1;
122+
this.listenCount = Bootstraps.isReusePortAvailable() ? Integer.getInteger("Geyser.ListenCount", 1) : 1;
123123
GeyserImpl.getInstance().getLogger().debug("Listen thread count: " + listenCount);
124124
this.group = TRANSPORT.eventLoopGroupFactory().apply(listenCount, new DefaultThreadFactory("GeyserServer", true));
125125
this.childGroup = TRANSPORT.eventLoopGroupFactory().apply(threadCount, new DefaultThreadFactory("GeyserServerChild", true));

0 commit comments

Comments
 (0)