mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-07 21:13:44 +02:00
.
This commit is contained in:
parent
17ec47f5c0
commit
db0f602e86
1 changed files with 2 additions and 2 deletions
|
@ -121,7 +121,7 @@ static void handlePacket(const InetAddress *const ip,const Packet *const inpkt)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
peer.set(new PeerInfo);
|
peer.set(new PeerInfo);
|
||||||
if (id.agree(self,peer->key)) {
|
if (self.agree(id,peer->key)) {
|
||||||
if (pkt.dearmor(peer->key)) {
|
if (pkt.dearmor(peer->key)) {
|
||||||
if (id.locallyValidate()) {
|
if (id.locallyValidate()) {
|
||||||
peer->id = id;
|
peer->id = id;
|
||||||
|
@ -268,7 +268,7 @@ static int bindSocket(struct sockaddr *bindAddr)
|
||||||
|
|
||||||
int main(int argc,char **argv)
|
int main(int argc,char **argv)
|
||||||
{
|
{
|
||||||
if (argc != 2) {
|
if (argc < 2) {
|
||||||
printf("Usage: zerotier-root <identity.secret> [<port>]" ZT_EOL_S);
|
printf("Usage: zerotier-root <identity.secret> [<port>]" ZT_EOL_S);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue