From f4bc2ac131a07f068f60ac9ccaf5c56b199a28ad Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Fri, 12 Jun 2020 03:10:25 -0400 Subject: [PATCH] Regenerate with random secret if not present in velocity.toml. --- .../com/velocitypowered/proxy/config/VelocityConfiguration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/config/VelocityConfiguration.java b/proxy/src/main/java/com/velocitypowered/proxy/config/VelocityConfiguration.java index 3522d1523..921556676 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/config/VelocityConfiguration.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/config/VelocityConfiguration.java @@ -465,7 +465,7 @@ public class VelocityConfiguration extends AnnotatedConfig implements ProxyConfi Advanced advanced = new Advanced(toml.getTable("advanced")); Query query = new Query(toml.getTable("query")); Metrics metrics = new Metrics(toml.getTable("metrics")); - byte[] forwardingSecret = toml.getString("forwarding-secret", "5up3r53cr3t") + byte[] forwardingSecret = toml.getString("forwarding-secret", generateRandomString(12)) .getBytes(StandardCharsets.UTF_8); String forwardingModeName = toml.getString("player-info-forwarding-mode", "MODERN")