1
0
mirror of https://github.com/CPunch/Laika.git synced 2024-11-21 12:40:04 +00:00

Shell: use LAIKA_CNC_* macros

This commit is contained in:
CPunch 2022-04-11 09:51:10 -05:00
parent 59c01d422b
commit c6c187dcc7
2 changed files with 2 additions and 2 deletions

View File

@ -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))) {

View File

@ -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)