Joseph Henry
e01c0adff2
Added ifdef checks to omit some ManagedRoute code in SDK builds
8 years ago
Adam Ierymenko
fa7e7fc6f9
Revert fix for GitHub issue #600 because it causes route objects to build up forever (at least on Mac). Bleh. #600 is a rare issue and will need some other fix after reliable duplication.
8 years ago
Adam Ierymenko
5b114791e5
Fix a bug that caused a crash on empty HTTP requests (localhost only) and add a lightweight lock to the RX queue to prevent possible threads stepping on each other in parallel receive paths.
8 years ago
Joseph Henry
bdcdccfcc3
Improved path selection, more efficient traffic allocation, lower QoS/ACK overhead
8 years ago
Joseph Henry
17fbb020e7
Added multipath field to zerotier-cli status output. Adjusted how path estimates are computed and cached
8 years ago
Grant Limberg
dce9cb27c1
helps to have an ==0 on a strcmp
8 years ago
Grant Limberg
4199c56e99
cant compare character arrays with ==
8 years ago
Joseph Henry
9681fedbb4
Spellcheck sweep across codebase
8 years ago
Grant Limberg
b22405b64b
rtnetlink integrated. no more callouts to iproute2
8 years ago
Grant Limberg
62210e57f1
helps to have an ==0 on a strcmp
8 years ago
Grant Limberg
4dd093efc9
cant compare character arrays with ==
8 years ago
Joseph Henry
46a7a2be2e
Added VERB_ACK and VERB_QOS_MEASUREMENT, refined notion of path quality
8 years ago
Adam Ierymenko
0cd01b6ff8
Fix silly bug where moons and networks were being loaded by the address of an array rather than the proper value.
8 years ago
Joseph Henry
91c8e82c42
Adjusted locking order of _paths_m for path pruning. Other minor multipath changes
8 years ago
Joseph Henry
1debe2292d
Cleanup. Misc type conversion and signedness fixes
8 years ago
Joseph Henry
6a2ba4baca
Introduced basic multipath support
8 years ago
Joseph Henry
836d897aec
Re-ordered local.conf and node init logic, also split software update config into separate method to fix bad node pointer reference
8 years ago
Adam Ierymenko
916077012e
Make sure fopen is in binary mode on Windows.
8 years ago
Grant Limberg
2d289a3308
Just a little cleanup
8 years ago
Grant Limberg
7793060723
Add HashiCorp Vault storage of ZeroTier's public & secret identity
...
Adds a "vault" section to local.conf. Example local.conf:
{
"config": {
"vault": {
"vaultURL": "https://some.vault.host:8200 ",
"vaultToken": "my-super-secret-vault-token",
"vaultPath": "secure/place/to/put/identity"
}
}
Additionally, the following environment variables can be set. Environment variables override local.conf:
VAULT_ADDR
VAULT_TOKEN
VAULT_PATH
Identities will be placed in the keys "public" and "secret" under the user specified path. If no path is specified, they will be placed in the token specific cubbyhole.
If identity.public and identity.secret exist on disk and vault is configured, they will be automatically added to Vault and removed from disk.
TODO:
* Decide behavior for if Vault cannot be reached.
* Add libcurl as a dependency in Linux & Mac builds
* Add libcurl as a requirement for linux packages
8 years ago
Grant Limberg
5ff0653f9e
Hooks into StateGet and StatePut for grabbing identity.secret from Vault
8 years ago
Grant Limberg
9574d635c1
Add Vault configuration option parsing to local.conf
...
{
"settings": {
...
"valut": {
"vaultURL": "...",
"vaultKey": "...",
"vaultPath": "..."
}
}
}
8 years ago
Joseph Henry
db952a050a
Added platform checks for Windows in OneService
8 years ago
neutronscott
73ca9b6373
check physical blacklist for interface binding as well
8 years ago
Adam Ierymenko
f3dfd63634
Clean up some old stuff.
8 years ago
Adam Ierymenko
5f5302e595
More useful to allow arrays of IPs to bind to.
8 years ago
Adam Ierymenko
125ec622ca
Add bindToWildcard local.conf option.
8 years ago
Adam Ierymenko
c594351bcc
Remove old code.
8 years ago
Adam Ierymenko
f87326fc21
Fixes for lock ordering -- GitHub issue #573
8 years ago
Joseph Henry
640cc22749
Added allowTcpFallbackRelay to local.conf, fixed logic in Binder's route enumeration
8 years ago
Joseph Henry
7e2d614975
Attempted fix for ticket #656 (failes to acknowledge physical blacklists)
8 years ago
Joseph Henry
2e1bc6e500
Cleaned up old code for attempted fix for ticket #600
8 years ago
Adam Ierymenko
30694f0b20
Allow trusted paths over global IPs for legacy config format too.
8 years ago
Adam Ierymenko
65c07afe05
Copyright updates for 2018.
8 years ago
Adam Ierymenko
9c7ee5a21e
Tear out old "link quality" stuff since it is not currently used and will be done differently.
8 years ago
Joseph Henry
f7b3ffe8a0
Commented out block which ignores added routes if there already exists an IP in the route's range. Attempted fix for #600
8 years ago
Adam Ierymenko
0608704626
Some micro-optimizations, including a memcpy that is faster than Linux for most distro/compiler versions.
8 years ago
Joseph Henry
382dd82eb6
Fix for local.conf virtual path blacklist (ticket #594 )
8 years ago
Joseph Henry
e5d1243dd2
Minor changes to SDK-related portions of OneService
8 years ago
Adam Ierymenko
92c7070aa8
RethinkDB fixes.
8 years ago
Adam Ierymenko
2cc4dc5a6f
Clean peers.d periodically and delete peers older than 30 days.
9 years ago
Joseph Henry
ee4783e3fb
ifdef omit of deletePersistentTapDevice() in OneService for libzt builds on Windows
9 years ago
Grant Limberg
ceeb35eaac
If lastSend/lastReceive is < 0, just put 0.
9 years ago
Grant Limberg
4177a11522
remove some leftover debug code
9 years ago
Grant Limberg
b1d60df44c
timestamps changed from uint64_t to int64_t
...
There were cases in the code where time calculations and comparisons were overflowing and causing connection instability. This will keep time calculations within expected ranges.
9 years ago
Adam Ierymenko
f8014413a3
Add UDP MTU configurability.
9 years ago
Adam Ierymenko
6418d02572
Fix HTTP DELETE stupid bug.
9 years ago
Adam Ierymenko
2cebe7a5e0
Fix name difference.
9 years ago
Adam Ierymenko
64758c46b6
Implement peer serialization and deserialization.
9 years ago
Adam Ierymenko
4352202349
Reduce TCP relay latency -- see GitHub issue #564
9 years ago