fix TCP Fast Open config

This commit is contained in:
LinsaFTW 2022-02-25 00:13:37 -03:00
parent dfbb7c9ccd
commit bfeb0bd9fa

View File

@ -1,11 +1,11 @@
From d08330ba771879c20232f96cd93817f836c310dc Mon Sep 17 00:00:00 2001
From c5bfc9f7157dff54fbf9f2f860790244aafe55b7 Mon Sep 17 00:00:00 2001
From: LinsaFTW <25271111+linsaftw@users.noreply.github.com>
Date: Thu, 24 Feb 2022 23:41:57 -0300
Subject: [PATCH] TCP Fast Open
diff --git a/flamecord/src/main/java/dev/_2lstudios/flamecord/configuration/FlameCordConfiguration.java b/flamecord/src/main/java/dev/_2lstudios/flamecord/configuration/FlameCordConfiguration.java
index d320fa94..c5aafda0 100644
index d320fa94..d0fb0de2 100644
--- a/flamecord/src/main/java/dev/_2lstudios/flamecord/configuration/FlameCordConfiguration.java
+++ b/flamecord/src/main/java/dev/_2lstudios/flamecord/configuration/FlameCordConfiguration.java
@@ -15,6 +15,10 @@ import net.md_5.bungee.config.Configuration;
@ -19,6 +19,15 @@ index d320fa94..c5aafda0 100644
private List<String> colors(final List<String> strings) {
for (int i = 0; i < strings.size(); i++) {
strings.set(i, ChatColor.translateAlternateColorCodes('&', strings.get(i)));
@@ -65,6 +69,8 @@ public class FlameCordConfiguration {
configuration = configurationProvider.load(configurationFile);
}
+ this.tcpFastOpen = setIfUnexistant("tcp-fast-open", this.tcpFastOpen, configuration);
+
this.customMotdEnabled = setIfUnexistant("custom-motd.enabled", this.customMotdEnabled, configuration);
this.customMotdMotds = colors(new ArrayList<>(setIfUnexistant("custom-motd.motds", this.customMotdMotds, configuration)));
diff --git a/proxy/src/main/java/net/md_5/bungee/netty/PipelineUtils.java b/proxy/src/main/java/net/md_5/bungee/netty/PipelineUtils.java
index f7455a7e..b762d58d 100644
--- a/proxy/src/main/java/net/md_5/bungee/netty/PipelineUtils.java