summaryrefslogtreecommitdiff
path: root/src/network/core
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-09-15 18:28:39 +0000
committerrubidium <rubidium@openttd.org>2011-09-15 18:28:39 +0000
commit998bbde49ea1ef919ea42498af4760dbac603bc2 (patch)
treeb04b782e989f45261cf7f8c565afca581771afcd /src/network/core
parentfd79d18c3fb3909cf339a253002ff795d54b33f8 (diff)
downloadopenttd-998bbde49ea1ef919ea42498af4760dbac603bc2.tar.xz
(svn r22934) -Fix [FS#4771]: prevent authentication bypass for the admin port when a new game is started
Diffstat (limited to 'src/network/core')
-rw-r--r--src/network/core/tcp_admin.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/network/core/tcp_admin.h b/src/network/core/tcp_admin.h
index ee34725f6..c0491f0cc 100644
--- a/src/network/core/tcp_admin.h
+++ b/src/network/core/tcp_admin.h
@@ -449,6 +449,15 @@ public:
~NetworkAdminSocketHandler();
NetworkRecvStatus ReceivePackets();
+
+ /**
+ * Get the status of the admin.
+ * @return The status of the admin.
+ */
+ AdminStatus GetAdminStatus() const
+ {
+ return this->status;
+ }
};
#endif /* ENABLE_NETWORK */