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:
parent
59c01d422b
commit
c6c187dcc7
@ -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))) {
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user