Skip to content

Commit a2bef53

Browse files
RaphiMCKas-tle
andcommitted
Switch nethernet library dependency to maven central
Co-authored-by: Joshua Castle <[email protected]> Closes #557
1 parent 148cab3 commit a2bef53

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ repositories {
4545

4646
content {
4747
includeGroupByRegex "com\\.github\\..+"
48-
includeGroupByRegex "dev\\.kastle\\..+"
4948
}
5049
}
5150
}
@@ -102,7 +101,7 @@ dependencies {
102101
includeInJar("dev.kastle.netty:netty-transport-raknet:1.5.2") {
103102
exclude group: "io.netty"
104103
}
105-
includeInJar("dev.kastle.NetworkCompatible:netty-transport-nethernet:6a8915db93") {
104+
includeInJar("dev.kastle.netty:netty-transport-nethernet:1.6.0") {
106105
exclude group: "io.netty"
107106
}
108107
["windows-x86_64", "windows-aarch64", "linux-x86_64", "linux-aarch64", "macos-aarch64"].each {

src/main/java/net/raphimc/viaproxy/proxy/session/BedrockProxyConnection.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ protected void initializeNetherNet(final TransportType transportType, final Boot
121121
.group(EventLoops.getClientEventLoop(TransportType.NIO))
122122
.channelFactory(NetherNetChannelFactory.client(new PeerConnectionFactory(), netherNetSignaling))
123123
.option(NetherChannelOption.NETHER_CLIENT_HANDSHAKE_TIMEOUT_MS, ViaProxy.getConfig().getConnectTimeout())
124+
.option(NetherChannelOption.NETHER_CLIENT_MAX_HANDSHAKE_ATTEMPTS, 1)
124125
.handler(new ChannelInitializer<>() {
125126
@Override
126127
protected void initChannel(final Channel channel) {

0 commit comments

Comments
 (0)