Fix bungee bind error.
This commit is contained in:
parent
30c3d2bfb9
commit
85ffb7f034
|
@ -52,6 +52,7 @@ public class WebSocketListener extends WebSocketServer {
|
||||||
|
|
||||||
public WebSocketListener(ListenerInfo info, InetSocketAddress sock, ProxyServer bungeeCord) {
|
public WebSocketListener(ListenerInfo info, InetSocketAddress sock, ProxyServer bungeeCord) {
|
||||||
super(info.getHost());
|
super(info.getHost());
|
||||||
|
this.setReuseAddr(true);
|
||||||
this.setTcpNoDelay(true);
|
this.setTcpNoDelay(true);
|
||||||
this.setConnectionLostTimeout(20);
|
this.setConnectionLostTimeout(20);
|
||||||
this.start();
|
this.start();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user