mirror of
https://github.com/PaperMC/Waterfall.git
synced 2024-11-05 18:21:27 +01:00
fix TCP Fast Open config
This commit is contained in:
parent
dfbb7c9ccd
commit
bfeb0bd9fa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user