Explorar o código

Decreased ZT_BINDER_REFRESH_PERIOD for Synology build

Joseph Henry %!s(int64=8) %!d(string=hai) anos
pai
achega
e4135ffb35
Modificáronse 1 ficheiros con 6 adicións e 2 borrados
  1. 6 2
      osdep/Binder.hpp

+ 6 - 2
osdep/Binder.hpp

@@ -63,8 +63,12 @@
  *
  *
  * OneService also does this on detected restarts.
  * OneService also does this on detected restarts.
  */
  */
-#define ZT_BINDER_REFRESH_PERIOD 30000
-
+#ifdef __SYNOLOGY___
+ 	// Synology devices like to kill routes, check more often and re-add
+	#define ZT_BINDER_REFRESH_PERIOD 10000
+#else
+ 	#define ZT_BINDER_REFRESH_PERIOD 30000
+#endif
 namespace ZeroTier {
 namespace ZeroTier {
 
 
 /**
 /**