geforkt von Mirrors/Velocity
Rename proxy-protocol setting to haproxy-protocol to make it clearer this is for HAProxy.
Dieser Commit ist enthalten in:
Ursprung
1f9c24566d
Commit
4df8f70156
@ -646,7 +646,11 @@ public class VelocityConfiguration implements ProxyConfig {
|
|||||||
this.loginRatelimit = config.getIntOrElse("login-ratelimit", 3000);
|
this.loginRatelimit = config.getIntOrElse("login-ratelimit", 3000);
|
||||||
this.connectionTimeout = config.getIntOrElse("connection-timeout", 5000);
|
this.connectionTimeout = config.getIntOrElse("connection-timeout", 5000);
|
||||||
this.readTimeout = config.getIntOrElse("read-timeout", 30000);
|
this.readTimeout = config.getIntOrElse("read-timeout", 30000);
|
||||||
this.proxyProtocol = config.getOrElse("proxy-protocol", false);
|
if (config.contains("haproxy-protocol")) {
|
||||||
|
this.proxyProtocol = config.getOrElse("haproxy-protocol", false);
|
||||||
|
} else {
|
||||||
|
this.proxyProtocol = config.getOrElse("proxy-protocol", false);
|
||||||
|
}
|
||||||
this.tcpFastOpen = config.getOrElse("tcp-fast-open", false);
|
this.tcpFastOpen = config.getOrElse("tcp-fast-open", false);
|
||||||
this.bungeePluginMessageChannel = config.getOrElse("bungee-plugin-message-channel", true);
|
this.bungeePluginMessageChannel = config.getOrElse("bungee-plugin-message-channel", true);
|
||||||
this.showPingRequests = config.getOrElse("show-ping-requests", false);
|
this.showPingRequests = config.getOrElse("show-ping-requests", false);
|
||||||
|
@ -106,7 +106,7 @@ connection-timeout = 5000
|
|||||||
read-timeout = 30000
|
read-timeout = 30000
|
||||||
|
|
||||||
# Enables compatibility with HAProxy.
|
# Enables compatibility with HAProxy.
|
||||||
proxy-protocol = false
|
haproxy-protocol = false
|
||||||
|
|
||||||
# Enables TCP fast open support on the proxy. Requires the proxy to run on Linux.
|
# Enables TCP fast open support on the proxy. Requires the proxy to run on Linux.
|
||||||
tcp-fast-open = false
|
tcp-fast-open = false
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren