Fix docker scaling and show loading MOTD (#529)
* fix: Reduce log spam for sleeping servers * fix: Fix autodownscaling for initial player connection * fix: Instant route updating when a docker container is downscaled * feat: Show asleep or loading motd while the server is waking up
This commit is contained in:
+2
-1
@@ -69,7 +69,7 @@ func NewServer(ctx context.Context, config *Config) (*Server, error) {
|
||||
|
||||
Routes.RegisterAll(config.Mapping)
|
||||
if config.Default != "" {
|
||||
Routes.SetDefaultRoute(config.Default, "", nil, nil, "")
|
||||
Routes.SetDefaultRoute(config.Default, "", nil, nil, "", "")
|
||||
}
|
||||
|
||||
if config.ConnectionRateLimit < 1 {
|
||||
@@ -83,6 +83,7 @@ func NewServer(ctx context.Context, config *Config) (*Server, error) {
|
||||
autoScaleAllowDenyConfig)
|
||||
|
||||
connector.UseAsleepMOTD(config.AutoScale.AsleepMOTD)
|
||||
connector.UseLoadingMOTD(config.AutoScale.LoadingMOTD)
|
||||
|
||||
clientFilter, err := NewClientFilter(config.ClientsToAllow, config.ClientsToDeny)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user