aboutsummaryrefslogtreecommitdiff
path: root/pkg/atlas
diff options
context:
space:
mode:
authorEladNLG <e1lad8955@gmail.com>2023-03-29 13:17:28 +0300
committerGitHub <noreply@github.com>2023-03-29 06:17:28 -0400
commitc1117bb859053a2edace051a95506a0509869c0f (patch)
tree944345f55257f66ac828cebdc5ef4ed17b4a6a50 /pkg/atlas
parenta3109ce30f0de2fec0f5f130761939233cbeee77 (diff)
downloadAtlas-c1117bb859053a2edace051a95506a0509869c0f.tar.gz
Atlas-c1117bb859053a2edace051a95506a0509869c0f.zip
pkg/atlas, pkg/api/api0: lol
Diffstat (limited to 'pkg/atlas')
-rw-r--r--pkg/atlas/config.go3
-rw-r--r--pkg/atlas/server.go1
2 files changed, 4 insertions, 0 deletions
diff --git a/pkg/atlas/config.go b/pkg/atlas/config.go
index a7cc8c2..2855489 100644
--- a/pkg/atlas/config.go
+++ b/pkg/atlas/config.go
@@ -220,6 +220,9 @@ type Config struct {
// {status}.html.
Web string `env:"ATLAS_WEB"`
+ // For the Funny:tm:
+ AllowJokes bool `env:"ATLAS_JOKES"`
+
// The path to the IP2Location database, which should contain at least the
// country and region fields. The database must not be modified while atlas
// is running, but it can be replaced (and a reload can be triggered with
diff --git a/pkg/atlas/server.go b/pkg/atlas/server.go
index 043fa2c..c8f39f4 100644
--- a/pkg/atlas/server.go
+++ b/pkg/atlas/server.go
@@ -272,6 +272,7 @@ func NewServer(c *Config) (*Server, error) {
s.API0 = &api0.Handler{
ServerList: api0.NewServerList(c.API0_ServerList_DeadTime, c.API0_ServerList_GhostTime, c.API0_ServerList_VerifyTime, api0.ServerListConfig{
ExperimentalDeterministicServerIDSecret: c.API0_ServerList_ExperimentalDeterministicServerIDSecret,
+ AllowUwuify: c.AllowJokes,
}),
MaxServers: c.API0_MaxServers,
MaxServersPerIP: c.API0_MaxServersPerIP,