mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-18 02:40:13 +00:00
Revert "Version bump, backport one more fix."
This reverts commit 9f9a870399
.
This commit is contained in:
parent
9f9a870399
commit
452b1e806b
@ -1,10 +1,6 @@
|
|||||||
ZeroTier Release Notes
|
ZeroTier Release Notes
|
||||||
======
|
======
|
||||||
|
|
||||||
# 2021-09-21 -- Version 1.6.6
|
|
||||||
|
|
||||||
* Point release to back-port additional endpoint-side mitigations against vulnerability announced by Pulse Security.
|
|
||||||
|
|
||||||
# 2021-04-13 -- Version 1.6.5
|
# 2021-04-13 -- Version 1.6.5
|
||||||
|
|
||||||
* Fix a bug in potential network path filtering that could in some circumstances lead to "software laser" effects.
|
* Fix a bug in potential network path filtering that could in some circumstances lead to "software laser" effects.
|
||||||
|
@ -689,7 +689,7 @@
|
|||||||
<key>USE_HFS+_COMPRESSION</key>
|
<key>USE_HFS+_COMPRESSION</key>
|
||||||
<false/>
|
<false/>
|
||||||
<key>VERSION</key>
|
<key>VERSION</key>
|
||||||
<string>1.6.6</string>
|
<string>1.6.5</string>
|
||||||
</dict>
|
</dict>
|
||||||
<key>TYPE</key>
|
<key>TYPE</key>
|
||||||
<integer>0</integer>
|
<integer>0</integer>
|
||||||
@ -865,13 +865,6 @@
|
|||||||
</dict>
|
</dict>
|
||||||
<key>PROJECT_SETTINGS</key>
|
<key>PROJECT_SETTINGS</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>ADVANCED_OPTIONS</key>
|
|
||||||
<dict>
|
|
||||||
<key>installer-script.options:hostArchitectures</key>
|
|
||||||
<array>
|
|
||||||
<string>x86_64,arm64</string>
|
|
||||||
</array>
|
|
||||||
</dict>
|
|
||||||
<key>BUILD_FORMAT</key>
|
<key>BUILD_FORMAT</key>
|
||||||
<integer>0</integer>
|
<integer>0</integer>
|
||||||
<key>BUILD_PATH</key>
|
<key>BUILD_PATH</key>
|
||||||
|
@ -250,26 +250,14 @@ static void _routeCmd(const char *op,const InetAddress &target,const InetAddress
|
|||||||
char iptmp[64];
|
char iptmp[64];
|
||||||
if (via) {
|
if (via) {
|
||||||
if ((ifscope)&&(ifscope[0])) {
|
if ((ifscope)&&(ifscope[0])) {
|
||||||
#ifdef ZT_TRACE
|
|
||||||
fprintf(stderr, "DEBUG: route %s -ifscope %s %s %s" ZT_EOL_S, ifscope,((target.ss_family == AF_INET6) ? "-inet6" : "-inet"),target.toString(ttmp),via.toIpString(iptmp));
|
|
||||||
#endif
|
|
||||||
::execl(ZT_BSD_ROUTE_CMD,ZT_BSD_ROUTE_CMD,op,"-ifscope",ifscope,((target.ss_family == AF_INET6) ? "-inet6" : "-inet"),target.toString(ttmp),via.toIpString(iptmp),(const char *)0);
|
::execl(ZT_BSD_ROUTE_CMD,ZT_BSD_ROUTE_CMD,op,"-ifscope",ifscope,((target.ss_family == AF_INET6) ? "-inet6" : "-inet"),target.toString(ttmp),via.toIpString(iptmp),(const char *)0);
|
||||||
} else {
|
} else {
|
||||||
#ifdef ZT_TRACE
|
|
||||||
fprintf(stderr, "DEBUG: route %s %s %s %s" ZT_EOL_S, op,((target.ss_family == AF_INET6) ? "-inet6" : "-inet"),target.toString(ttmp),via.toIpString(iptmp));
|
|
||||||
#endif
|
|
||||||
::execl(ZT_BSD_ROUTE_CMD,ZT_BSD_ROUTE_CMD,op,((target.ss_family == AF_INET6) ? "-inet6" : "-inet"),target.toString(ttmp),via.toIpString(iptmp),(const char *)0);
|
::execl(ZT_BSD_ROUTE_CMD,ZT_BSD_ROUTE_CMD,op,((target.ss_family == AF_INET6) ? "-inet6" : "-inet"),target.toString(ttmp),via.toIpString(iptmp),(const char *)0);
|
||||||
}
|
}
|
||||||
} else if ((localInterface)&&(localInterface[0])) {
|
} else if ((localInterface)&&(localInterface[0])) {
|
||||||
if ((ifscope)&&(ifscope[0])) {
|
if ((ifscope)&&(ifscope[0])) {
|
||||||
#ifdef ZT_TRACE
|
|
||||||
fprintf(stderr, "DEBUG: route %s -ifscope %s %s %s -interface %s" ZT_EOL_S, op, ifscope,((target.ss_family == AF_INET6) ? "-inet6" : "-inet"),target.toString(ttmp),localInterface);
|
|
||||||
#endif
|
|
||||||
::execl(ZT_BSD_ROUTE_CMD,ZT_BSD_ROUTE_CMD,op,"-ifscope",ifscope,((target.ss_family == AF_INET6) ? "-inet6" : "-inet"),target.toString(ttmp),"-interface",localInterface,(const char *)0);
|
::execl(ZT_BSD_ROUTE_CMD,ZT_BSD_ROUTE_CMD,op,"-ifscope",ifscope,((target.ss_family == AF_INET6) ? "-inet6" : "-inet"),target.toString(ttmp),"-interface",localInterface,(const char *)0);
|
||||||
} else {
|
} else {
|
||||||
#ifdef ZT_TRACE
|
|
||||||
fprintf(stderr, "DEBUG: route %s %s %s -interface %s" ZT_EOL_S, op,((target.ss_family == AF_INET6) ? "-inet6" : "-inet"),target.toString(ttmp),localInterface);
|
|
||||||
#endif
|
|
||||||
::execl(ZT_BSD_ROUTE_CMD,ZT_BSD_ROUTE_CMD,op,((target.ss_family == AF_INET6) ? "-inet6" : "-inet"),target.toString(ttmp),"-interface",localInterface,(const char *)0);
|
::execl(ZT_BSD_ROUTE_CMD,ZT_BSD_ROUTE_CMD,op,((target.ss_family == AF_INET6) ? "-inet6" : "-inet"),target.toString(ttmp),"-interface",localInterface,(const char *)0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -405,7 +393,9 @@ ManagedRoute::ManagedRoute(const InetAddress &target,const InetAddress &via,cons
|
|||||||
}
|
}
|
||||||
|
|
||||||
ManagedRoute::~ManagedRoute()
|
ManagedRoute::~ManagedRoute()
|
||||||
{}
|
{
|
||||||
|
this->remove();
|
||||||
|
}
|
||||||
|
|
||||||
/* Linux NOTE: for default route override, some Linux distributions will
|
/* Linux NOTE: for default route override, some Linux distributions will
|
||||||
* require a change to the rp_filter parameter. A value of '1' will prevent
|
* require a change to the rp_filter parameter. A value of '1' will prevent
|
||||||
@ -437,24 +427,6 @@ bool ManagedRoute::sync()
|
|||||||
|
|
||||||
#ifdef __BSD__ // ------------------------------------------------------------
|
#ifdef __BSD__ // ------------------------------------------------------------
|
||||||
|
|
||||||
if (_device[0]) {
|
|
||||||
bool haveDevice = false;
|
|
||||||
struct ifaddrs *ifa = (struct ifaddrs *)0;
|
|
||||||
if (!getifaddrs(&ifa)) {
|
|
||||||
struct ifaddrs *p = ifa;
|
|
||||||
while (p) {
|
|
||||||
if ((p->ifa_name)&&(!strcmp(_device, p->ifa_name))) {
|
|
||||||
haveDevice = true;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
p = p->ifa_next;
|
|
||||||
}
|
|
||||||
freeifaddrs(ifa);
|
|
||||||
}
|
|
||||||
if (!haveDevice)
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Find lowest metric system route that this route should override (if any)
|
// Find lowest metric system route that this route should override (if any)
|
||||||
InetAddress newSystemVia;
|
InetAddress newSystemVia;
|
||||||
char newSystemDevice[128];
|
char newSystemDevice[128];
|
||||||
@ -499,25 +471,23 @@ bool ManagedRoute::sync()
|
|||||||
|
|
||||||
if (_systemVia) {
|
if (_systemVia) {
|
||||||
_routeCmd("add",leftt,_systemVia,_systemDevice,(const char *)0);
|
_routeCmd("add",leftt,_systemVia,_systemDevice,(const char *)0);
|
||||||
//_routeCmd("change",leftt,_systemVia,_systemDevice,(const char *)0);
|
_routeCmd("change",leftt,_systemVia,_systemDevice,(const char *)0);
|
||||||
if (rightt) {
|
if (rightt) {
|
||||||
_routeCmd("add",rightt,_systemVia,_systemDevice,(const char *)0);
|
_routeCmd("add",rightt,_systemVia,_systemDevice,(const char *)0);
|
||||||
//_routeCmd("change",rightt,_systemVia,_systemDevice,(const char *)0);
|
_routeCmd("change",rightt,_systemVia,_systemDevice,(const char *)0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!_applied.count(leftt)) {
|
if (!_applied.count(leftt)) {
|
||||||
_applied[leftt] = !_via;
|
_applied[leftt] = false; // not ifscoped
|
||||||
_routeCmd("delete",leftt,_via,(const char *)0,(_via) ? (const char *)0 : _device);
|
|
||||||
_routeCmd("add",leftt,_via,(const char *)0,(_via) ? (const char *)0 : _device);
|
_routeCmd("add",leftt,_via,(const char *)0,(_via) ? (const char *)0 : _device);
|
||||||
//_routeCmd("change",leftt,_via,(const char *)0,(_via) ? (const char *)0 : _device);
|
_routeCmd("change",leftt,_via,(const char *)0,(_via) ? (const char *)0 : _device);
|
||||||
}
|
}
|
||||||
if ((rightt)&&(!_applied.count(rightt))) {
|
if ((rightt)&&(!_applied.count(rightt))) {
|
||||||
_applied[rightt] = !_via;
|
_applied[rightt] = false; // not ifscoped
|
||||||
_routeCmd("delete",rightt,_via,(const char *)0,(_via) ? (const char *)0 : _device);
|
|
||||||
_routeCmd("add",rightt,_via,(const char *)0,(_via) ? (const char *)0 : _device);
|
_routeCmd("add",rightt,_via,(const char *)0,(_via) ? (const char *)0 : _device);
|
||||||
//_routeCmd("change",rightt,_via,(const char *)0,(_via) ? (const char *)0 : _device);
|
_routeCmd("change",rightt,_via,(const char *)0,(_via) ? (const char *)0 : _device);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // __BSD__ ------------------------------------------------------------
|
#endif // __BSD__ ------------------------------------------------------------
|
||||||
@ -596,4 +566,4 @@ void ManagedRoute::remove()
|
|||||||
_applied.clear();
|
_applied.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace ZeroTier
|
} // namespace ZeroTier
|
Loading…
Reference in New Issue
Block a user