diff options
author | EladNLG <e1lad8955@gmail.com> | 2023-03-29 13:17:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-29 06:17:28 -0400 |
commit | c1117bb859053a2edace051a95506a0509869c0f (patch) | |
tree | 944345f55257f66ac828cebdc5ef4ed17b4a6a50 /pkg/atlas | |
parent | a3109ce30f0de2fec0f5f130761939233cbeee77 (diff) | |
download | Atlas-c1117bb859053a2edace051a95506a0509869c0f.tar.gz Atlas-c1117bb859053a2edace051a95506a0509869c0f.zip |
pkg/atlas, pkg/api/api0: lol
Diffstat (limited to 'pkg/atlas')
-rw-r--r-- | pkg/atlas/config.go | 3 | ||||
-rw-r--r-- | pkg/atlas/server.go | 1 |
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, |