From db0f602e86d334a11fbb030bf50aced88d484009 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Wed, 28 Aug 2019 13:10:36 -0700 Subject: [PATCH] . --- root/root.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/root/root.cpp b/root/root.cpp index e54185465..e1aa60660 100644 --- a/root/root.cpp +++ b/root/root.cpp @@ -121,7 +121,7 @@ static void handlePacket(const InetAddress *const ip,const Packet *const inpkt) } } else { peer.set(new PeerInfo); - if (id.agree(self,peer->key)) { + if (self.agree(id,peer->key)) { if (pkt.dearmor(peer->key)) { if (id.locallyValidate()) { peer->id = id; @@ -268,7 +268,7 @@ static int bindSocket(struct sockaddr *bindAddr) int main(int argc,char **argv) { - if (argc != 2) { + if (argc < 2) { printf("Usage: zerotier-root []" ZT_EOL_S); return 1; }