mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-20 03:36:40 +00:00
.
This commit is contained in:
parent
17ec47f5c0
commit
db0f602e86
@ -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 <identity.secret> [<port>]" ZT_EOL_S);
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user