Bläddra i källkod

Don't use TLS time sync for mesh peers, which are typically not connected to the internet

Bob Mottram 9 år sedan
förälder
incheckning
284afc76f8
1 ändrade filer med 4 tillägg och 0 borttagningar
  1. 4
    0
      src/freedombone

+ 4
- 0
src/freedombone Visa fil

5714
   if grep -Fxq "time_synchronisation" $COMPLETION_FILE; then
5714
   if grep -Fxq "time_synchronisation" $COMPLETION_FILE; then
5715
       return
5715
       return
5716
   fi
5716
   fi
5717
+  # mesh peers typically don't sync over the internet
5718
+  if [[ $SYSTEM_TYPE == "$VARIANT_MESH" ]]; then
5719
+      return
5720
+  fi
5717
   #apt-get -y install tlsdate
5721
   #apt-get -y install tlsdate
5718
 
5722
 
5719
   # building tlsdate from source is a workaround because of
5723
   # building tlsdate from source is a workaround because of