diff options
author | Ethan Jones <ethan@yasfu.net> | 2021-09-23 22:09:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-23 22:09:52 +0200 |
commit | 7b0872aeccc2be460e8af5cd4a14b0660a83c1ed (patch) | |
tree | f6164ea4070d6d49f0f3968a970258559d562752 /src/Server.h | |
parent | Ignore dead movement (#5292) (diff) | |
download | cuberite-7b0872aeccc2be460e8af5cd4a14b0660a83c1ed.tar cuberite-7b0872aeccc2be460e8af5cd4a14b0660a83c1ed.tar.gz cuberite-7b0872aeccc2be460e8af5cd4a14b0660a83c1ed.tar.bz2 cuberite-7b0872aeccc2be460e8af5cd4a14b0660a83c1ed.tar.lz cuberite-7b0872aeccc2be460e8af5cd4a14b0660a83c1ed.tar.xz cuberite-7b0872aeccc2be460e8af5cd4a14b0660a83c1ed.tar.zst cuberite-7b0872aeccc2be460e8af5cd4a14b0660a83c1ed.zip |
Diffstat (limited to 'src/Server.h')
-rw-r--r-- | src/Server.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Server.h b/src/Server.h index 7701faa69..6bdab3e85 100644 --- a/src/Server.h +++ b/src/Server.h @@ -149,6 +149,10 @@ public: it makes the server vulnerable to identity theft through direct connections. */ bool ShouldAllowBungeeCord(void) const { return m_ShouldAllowBungeeCord; } + bool OnlyAllowBungeeCord(void) const { return m_OnlyAllowBungeeCord; } + + const AString & GetProxySharedSecret(void) const { return m_ProxySharedSecret; } + /** Returns true if usernames should be completed across worlds. This is read from the settings. */ bool ShouldAllowMultiWorldTabCompletion(void) const { return m_ShouldAllowMultiWorldTabCompletion; } @@ -240,6 +244,12 @@ private: /** True if BungeeCord handshake packets (with player UUID) should be accepted. */ bool m_ShouldAllowBungeeCord; + /** True if BungeeCord handshake packets should be the only ones accepted. */ + bool m_OnlyAllowBungeeCord; + + /** Security string that the proxy server should send, compatible with BungeeGuard */ + AString m_ProxySharedSecret; + /** True if usernames should be completed across worlds. */ bool m_ShouldAllowMultiWorldTabCompletion; |