Skip to content

Commit bf53029

Browse files
committed
Add remote_server_enabled config var to disable spam in setups where remote is not desired
1 parent b133048 commit bf53029

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

CS2RemoteConsole-client/config.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ cs2_console_port=29000
44
cs2_console_reconnect_delay=5000
55

66
# Remote Server Connection (Optional)
7+
remote_server_enabled=1
78
remote_server_ip=127.0.0.1
89
remote_server_port=42069
910
remote_server_reconnect_delay=5000

CS2RemoteConsole-client/src/main.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,11 @@ int main()
112112
spdlog::info("[Main] Starting {}", application_name);
113113

114114
cs2ConnectorThread = std::thread(cs2ConsoleConnectorLoop);
115-
remoteServerConnectorThread = std::thread(remoteServerConnectorLoop);
115+
116+
if (Config::getInstance().getInt("remote_server_enabled", 0) == 1)
117+
{
118+
remoteServerConnectorThread = std::thread(remoteServerConnectorLoop);
119+
}
116120

117121
tui.run();
118122

0 commit comments

Comments
 (0)