Skip to content

Commit 1e2ff04

Browse files
committed
fix typos in docs, comments, and strings
1 parent 2f5dc10 commit 1e2ff04

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

controller/PostgreSQL.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ MemberNotificationReceiver::MemberNotificationReceiver(PostgreSQL *p, pqxx::conn
113113
: pqxx::notification_receiver(c, channel)
114114
, _psql(p)
115115
{
116-
fprintf(stderr, "initialize MemberNotificaitonReceiver\n");
116+
fprintf(stderr, "initialize MemberNotificationReceiver\n");
117117
}
118118

119119

@@ -140,7 +140,7 @@ NetworkNotificationReceiver::NetworkNotificationReceiver(PostgreSQL *p, pqxx::co
140140
}
141141

142142
void NetworkNotificationReceiver::operator() (const std::string &payload, int packend_pid) {
143-
fprintf(stderr, "Network Notificaiton received: %s\n", payload.c_str());
143+
fprintf(stderr, "Network Notification received: %s\n", payload.c_str());
144144
json tmp(json::parse(payload));
145145
json &ov = tmp["old_val"];
146146
json &nv = tmp["new_val"];
@@ -185,7 +185,7 @@ PostgreSQL::PostgreSQL(const Identity &myId, const char *path, int listenPort, R
185185
fprintf(stderr, "ZT_SSO_PSK: %s\n", ssoPskHex);
186186
#endif
187187
if (ssoPskHex) {
188-
// SECURITY: note that ssoPskHex will always be null-terminated if libc acatually
188+
// SECURITY: note that ssoPskHex will always be null-terminated if libc actually
189189
// returns something non-NULL. If the hex encodes something shorter than 48 bytes,
190190
// it will be padded at the end with zeroes. If longer, it'll be truncated.
191191
Utils::unhex(ssoPskHex, _ssoPsk, sizeof(_ssoPsk));
@@ -1586,7 +1586,7 @@ void PostgreSQL::onlineNotificationThread()
15861586
/**
15871587
* ONLY UNCOMMENT FOR TEMPORARY DB MAINTENANCE
15881588
*
1589-
* This define temproarly turns off writing to the member status table
1589+
* This define temporarily turns off writing to the member status table
15901590
* so it can be reindexed when the indexes get too large.
15911591
*/
15921592

controller/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ This returns a JSON object containing all member IDs as keys and their `memberRe
246246
| vMajor | integer | Most recently known major version | no |
247247
| vMinor | integer | Most recently known minor version | no |
248248
| vRev | integer | Most recently known revision | no |
249-
| vProto | integer | Most recently known protocl version | no |
249+
| vProto | integer | Most recently known protocol version | no |
250250

251251
Note that managed IP assignments are only used if they fall within a managed route. Otherwise they are ignored.
252252

doc/zerotier-one.8.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ These are found in the service's working directory.
8181
If the ZeroTier One service is built with the network controller enabled, it periodically backs up its controller.db database in this file (currently every 5 minutes if there have been changes). Since this file is not a currently in use SQLite3 database it's safer to back up without corruption. On new backups the file is rotated out rather than being rewritten in place.
8282

8383
* `iddb.d/` (directory):
84-
Caches the public identity of every peer ZeroTier has spoken with in the last 60 days. This directory and its contents can be deleted, but this may result in slower connection initations since it will require that we go out and re-fetch full identities for peers we're speaking to.
84+
Caches the public identity of every peer ZeroTier has spoken with in the last 60 days. This directory and its contents can be deleted, but this may result in slower connection initiations since it will require that we go out and re-fetch full identities for peers we're speaking to.
8585

8686
* `networks.d` (directory):
8787
This caches network configurations and certificate information for networks you belong to. ZeroTier scans this directory for <network ID>.conf files on startup to recall its networks, so "touch"ing an empty <network ID>.conf file in this directory is a way of pre-configuring ZeroTier to join a specific network on startup without using the API. If the config file is empty ZeroTIer will just fetch it from the network's controller.

0 commit comments

Comments
 (0)