diff options
author | truelight <truelight@openttd.org> | 2005-01-15 20:09:16 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2005-01-15 20:09:16 +0000 |
commit | 24c9e6ff66c6386a182b0fe5eef5f371793b468e (patch) | |
tree | be21df9ed89b0080e4d32a5e54c3f2dffd9f3437 /settings.c | |
parent | e6d31cb89c43feebcd114d197166588e7ede72d3 (diff) | |
download | openttd-24c9e6ff66c6386a182b0fe5eef5f371793b468e.tar.xz |
(svn r1527) -Add: RCon (Remote Connection). A server can set:
'set rcon_pw <password>'
Which enables rcon. A client can now do:
'rcon <password> "<command>"'
The command will be executed on the server. (guru3)
-Fix: 'kick 1' did crash dedicated servers
-Fix: server password is now correctly saved
!!Warning!!: do not give your rcon password to people you do not thrust!
Diffstat (limited to 'settings.c')
-rw-r--r-- | settings.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/settings.c b/settings.c index 3ebce5e17..f880d15ff 100644 --- a/settings.c +++ b/settings.c @@ -759,7 +759,8 @@ static const SettingDesc network_settings[] = { {"server_advertise",SDT_BOOL, (void*)false, &_network_advertise, NULL}, {"lan_internet", SDT_UINT8, (void*)0, &_network_lan_internet, NULL}, {"player_name", SDT_STRINGBUF | (lengthof(_network_player_name) << 16), NULL, &_network_player_name, NULL}, - {"server_password", SDT_STRINGBUF | (lengthof(_network_game_info.server_password) << 16), NULL, &_network_game_info.server_password, NULL}, + {"server_password", SDT_STRINGBUF | (lengthof(_network_server_password) << 16), NULL, &_network_server_password, NULL}, + {"rcon_password", SDT_STRINGBUF | (lengthof(_network_rcon_password) << 16), NULL, &_network_rcon_password, NULL}, {"server_name", SDT_STRINGBUF | (lengthof(_network_server_name) << 16), NULL, &_network_server_name, NULL}, {"connect_to_ip", SDT_STRINGBUF | (lengthof(_network_default_ip) << 16), NULL, &_network_default_ip, NULL}, {"network_id", SDT_STRINGBUF | (lengthof(_network_unique_id) << 16), NULL, &_network_unique_id, NULL}, |