Browse Source

Merge branch 'dev' of http://git.int.zerotier.com/ZeroTier/ZeroTierOne into dev

Adam Ierymenko 4 years ago
parent
commit
f906eec42e

+ 4 - 1
RELEASE-NOTES.md

@@ -1,12 +1,15 @@
 ZeroTier Release Notes
 ZeroTier Release Notes
 ======
 ======
 
 
-# ??? -- Version 1.6.1
+# 2020-11-24 -- Version 1.6.1
+
+This release fixes some minor bugs and other issues in 1.6.0.
 
 
  * Fixed a bug that caused IP addresses in the 203.0.0.0/8 block to be miscategorized as not being in global scope.
  * Fixed a bug that caused IP addresses in the 203.0.0.0/8 block to be miscategorized as not being in global scope.
  * Changed Linux builds to (hopefully) fix LXC and SELinux issues.
  * Changed Linux builds to (hopefully) fix LXC and SELinux issues.
  * Fixed unaligned memory access that caused crash on FreeBSD systems on the ARM architecture.
  * Fixed unaligned memory access that caused crash on FreeBSD systems on the ARM architecture.
  * Merged CLI options for controlling bonded devices into the beta multipath code.
  * Merged CLI options for controlling bonded devices into the beta multipath code.
+ * Updated Windows driver with Microsoft cross-signing to fix issues on some Windows systems.
 
 
 # 2020-11-19 -- Version 1.6.0
 # 2020-11-19 -- Version 1.6.0
 
 

+ 6 - 0
debian/changelog

@@ -1,3 +1,9 @@
+zerotier-one (1.6.1) unstable; urgency=medium
+
+  * See RELEASE-NOTES.md for release notes.
+
+ -- Adam Ierymenko <[email protected]>  Tue, 24 Nov 2020 01:00:00 -0700
+
 zerotier-one (1.6.0) unstable; urgency=medium
 zerotier-one (1.6.0) unstable; urgency=medium
 
 
   * See RELEASE-NOTES.md for release notes.
   * See RELEASE-NOTES.md for release notes.

+ 1 - 1
ext/installfiles/mac/ZeroTier One.pkgproj

@@ -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.0</string>
+				<string>1.6.1</string>
 			</dict>
 			</dict>
 			<key>TYPE</key>
 			<key>TYPE</key>
 			<integer>0</integer>
 			<integer>0</integer>

+ 8 - 1
java/src/com/zerotier/sdk/VirtualNetworkConfig.java

@@ -151,6 +151,13 @@ public final class VirtualNetworkConfig implements Comparable<VirtualNetworkConf
             }
             }
         }
         }
 
 
+        boolean dnsEquals = false;
+        if (this.dns == null || cfg.dns == null) {
+            dnsEquals = true;
+        } else if (this.dns != null) {
+            dnsEquals = this.dns.equals(cfg.dns);
+        }
+
         return this.nwid == cfg.nwid &&
         return this.nwid == cfg.nwid &&
                this.mac == cfg.mac &&
                this.mac == cfg.mac &&
                this.name.equals(cfg.name) &&
                this.name.equals(cfg.name) &&
@@ -162,7 +169,7 @@ public final class VirtualNetworkConfig implements Comparable<VirtualNetworkConf
                this.broadcastEnabled == cfg.broadcastEnabled &&
                this.broadcastEnabled == cfg.broadcastEnabled &&
                this.portError == cfg.portError &&
                this.portError == cfg.portError &&
                this.enabled == cfg.enabled &&
                this.enabled == cfg.enabled &&
-               this.dns.equals(cfg.dns) &&
+               dnsEquals &&
                aaEqual && routesEqual;
                aaEqual && routesEqual;
     }
     }
 
 

+ 1 - 0
java/src/com/zerotier/sdk/VirtualNetworkDNS.java

@@ -15,6 +15,7 @@ public class VirtualNetworkDNS implements Comparable<VirtualNetworkDNS> {
     public VirtualNetworkDNS() {}
     public VirtualNetworkDNS() {}
 
 
     public boolean equals(VirtualNetworkDNS o) {
     public boolean equals(VirtualNetworkDNS o) {
+        if (o == null) return false;
         return domain.equals(o.domain) && servers.equals(o.servers);
         return domain.equals(o.domain) && servers.equals(o.servers);
     }
     }
 
 

+ 1 - 1
one.cpp

@@ -2068,7 +2068,7 @@ int __cdecl _tmain(int argc, _TCHAR* argv[])
 int main(int argc,char **argv)
 int main(int argc,char **argv)
 #endif
 #endif
 {
 {
-#ifdef __LINUX__
+#if defined(__LINUX__) && ( (!defined(__GLIBC__)) || ((__GLIBC__ >= 2) && (__GLIBC_MINOR__ >= 18)) )
 	// This corrects for systems with abnormally small defaults (musl) and also
 	// This corrects for systems with abnormally small defaults (musl) and also
 	// shrinks the stack on systems with large defaults to save a bit of memory.
 	// shrinks the stack on systems with large defaults to save a bit of memory.
 	pthread_attr_t tattr;
 	pthread_attr_t tattr;

+ 1 - 1
version.h

@@ -27,7 +27,7 @@
 /**
 /**
  * Revision
  * Revision
  */
  */
-#define ZEROTIER_ONE_VERSION_REVISION 0
+#define ZEROTIER_ONE_VERSION_REVISION 1
 
 
 /**
 /**
  * Build version
  * Build version

+ 1 - 1
windows/WinUI/AboutView.xaml

@@ -19,7 +19,7 @@
                     <Run Text="ZeroTier One"/>
                     <Run Text="ZeroTier One"/>
                 </Paragraph>
                 </Paragraph>
                 <Paragraph TextAlignment="Center">
                 <Paragraph TextAlignment="Center">
-                    <Run FontSize="14" Text="Version 1.6.0"/>
+                    <Run FontSize="14" Text="Version 1.6.1"/>
                     <LineBreak/>
                     <LineBreak/>
                     <Run FontSize="14" Text="(c) 2011-2020 ZeroTier, Inc."/>
                     <Run FontSize="14" Text="(c) 2011-2020 ZeroTier, Inc."/>
                     <LineBreak/>
                     <LineBreak/>

+ 20 - 13
zerotier-one.spec

@@ -1,7 +1,7 @@
 Name:           zerotier-one
 Name:           zerotier-one
-Version:        1.6.0
+Version:        1.6.1
 Release:        1%{?dist}
 Release:        1%{?dist}
-Summary:        ZeroTier One network virtualization service
+Summary:        ZeroTier network virtualization service
 
 
 License:        ZeroTier BSL 1.1
 License:        ZeroTier BSL 1.1
 URL:            https://www.zerotier.com
 URL:            https://www.zerotier.com
@@ -37,24 +37,27 @@ It can be used for on-premise network virtualization, as a peer to peer VPN
 for mobile teams, for hybrid or multi-data-center cloud deployments, or just
 for mobile teams, for hybrid or multi-data-center cloud deployments, or just
 about anywhere else secure software defined virtual networking is useful.
 about anywhere else secure software defined virtual networking is useful.
 
 
-ZeroTier One is our OS-level client service. It allows Mac, Linux, Windows,
+This is our OS-level client service. It allows Mac, Linux, Windows,
 FreeBSD, and soon other types of clients to join ZeroTier virtual networks
 FreeBSD, and soon other types of clients to join ZeroTier virtual networks
 like conventional VPNs or VLANs. It can run on native systems, VMs, or
 like conventional VPNs or VLANs. It can run on native systems, VMs, or
 containers (Docker, OpenVZ, etc.).
 containers (Docker, OpenVZ, etc.).
 
 
 %prep
 %prep
-#rm -rf *
-#ln -s %{getenv:PWD} %{name}-%{version}
-#tar --exclude=%{name}-%{version}/.git --exclude=%{name}-%{version}/%{name}-%{version} -czf %{_sourcedir}/%{name}-%{version}.tar.gz %{name}-%{version}/*
-#rm -f %{name}-%{version}
-#cp -a %{getenv:PWD}/* .
+%if 0%{?rhel} >= 7
+rm -rf *
+ln -s %{getenv:PWD} %{name}-%{version}
+tar --exclude=%{name}-%{version}/.git --exclude=%{name}-%{version}/%{name}-%{version} -czf %{_sourcedir}/%{name}-%{version}.tar.gz %{name}-%{version}/*
+rm -f %{name}-%{version}
+cp -a %{getenv:PWD}/* .
+%endif
 
 
 %build
 %build
 #%if 0%{?rhel} <= 7
 #%if 0%{?rhel} <= 7
 #make CFLAGS="`echo %{optflags} | sed s/stack-protector-strong/stack-protector/`" CXXFLAGS="`echo %{optflags} | sed s/stack-protector-strong/stack-protector/`" ZT_USE_MINIUPNPC=1 %{?_smp_mflags} one manpages selftest
 #make CFLAGS="`echo %{optflags} | sed s/stack-protector-strong/stack-protector/`" CXXFLAGS="`echo %{optflags} | sed s/stack-protector-strong/stack-protector/`" ZT_USE_MINIUPNPC=1 %{?_smp_mflags} one manpages selftest
 #%else
 #%else
-#make CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" ZT_USE_MINIUPNPC=1 %{?_smp_mflags} one manpages selftest
-#%endif
+%if 0%{?rhel} >= 7
+make ZT_USE_MINIUPNPC=1 %{?_smp_mflags} one
+%endif
 
 
 %pre
 %pre
 %if 0%{?rhel} >= 7
 %if 0%{?rhel} >= 7
@@ -66,9 +69,13 @@ containers (Docker, OpenVZ, etc.).
 
 
 %install
 %install
 rm -rf $RPM_BUILD_ROOT
 rm -rf $RPM_BUILD_ROOT
+%if 0%{?rhel} < 7
 pushd %{getenv:PWD}
 pushd %{getenv:PWD}
+%endif
 make install DESTDIR=$RPM_BUILD_ROOT
 make install DESTDIR=$RPM_BUILD_ROOT
+%if 0%{?rhel} < 7
 popd
 popd
+%endif
 %if 0%{?rhel} >= 7
 %if 0%{?rhel} >= 7
 mkdir -p $RPM_BUILD_ROOT%{_unitdir}
 mkdir -p $RPM_BUILD_ROOT%{_unitdir}
 cp %{getenv:PWD}/debian/zerotier-one.service $RPM_BUILD_ROOT%{_unitdir}/%{name}.service
 cp %{getenv:PWD}/debian/zerotier-one.service $RPM_BUILD_ROOT%{_unitdir}/%{name}.service
@@ -145,6 +152,9 @@ esac
 %endif
 %endif
 
 
 %changelog
 %changelog
+* Tue Nov 24 2020 Adam Ierymenko <[email protected]> - 1.6.1-0.1
+- see https://github.com/zerotier/ZeroTierOne for release notes
+
 * Thu Nov 19 2020 Adam Ierymenko <[email protected]> - 1.6.0-0.1
 * Thu Nov 19 2020 Adam Ierymenko <[email protected]> - 1.6.0-0.1
 - see https://github.com/zerotier/ZeroTierOne for release notes
 - see https://github.com/zerotier/ZeroTierOne for release notes
 
 
@@ -154,9 +164,6 @@ esac
 * Fri Aug 23 2019 Adam Ierymenko <[email protected]> - 1.4.4-0.1
 * Fri Aug 23 2019 Adam Ierymenko <[email protected]> - 1.4.4-0.1
 - see https://github.com/zerotier/ZeroTierOne for release notes
 - see https://github.com/zerotier/ZeroTierOne for release notes
 
 
-* Mon Aug 04 2019 Adam Ierymenko <[email protected]> - 1.4.2-0.1
-- see https://github.com/zerotier/ZeroTierOne for release notes
-
 * Mon Jul 29 2019 Adam Ierymenko <[email protected]> - 1.4.0-0.1
 * Mon Jul 29 2019 Adam Ierymenko <[email protected]> - 1.4.0-0.1
 - see https://github.com/zerotier/ZeroTierOne for release notes
 - see https://github.com/zerotier/ZeroTierOne for release notes