mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
You can now disable status checking for testing purposes
Useful for local testing when there is no server running
This commit is contained in:
parent
13586e664f
commit
39d1127cf1
@ -262,6 +262,7 @@ $config = array(
|
||||
'last_kills_limit' => 50, // max. number of deaths shown on the last kills page
|
||||
|
||||
// status, took automatically from config file if empty
|
||||
'status_enabled' => true, // you can disable status checking by settings this to "false"
|
||||
'status_ip' => '',
|
||||
'status_port' => '',
|
||||
'status_timeout' => 2.0, // how long to wait for the initial response from the server (default: 2 seconds)
|
||||
|
@ -17,6 +17,10 @@ $status['lastCheck'] = 0;
|
||||
$status['uptime'] = '0h 0m';
|
||||
$status['monsters'] = 0;
|
||||
|
||||
if(config('status_enabled') === false) {
|
||||
return;
|
||||
}
|
||||
|
||||
$status_ip = $config['lua']['ip'];
|
||||
if(isset($config['lua']['statusProtocolPort'])) {
|
||||
$config['lua']['loginPort'] = $config['lua']['statusProtocolPort'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user