Changeset 32045


Ignore:
Timestamp:
May 14, 2017, 3:27:54 PM (10 days ago)
Author:
kong
Message:

update ntp server ips + do not allow to set a dnsserver name when dnscrypt is enabled, as dnscrypt can only resolve names when ntp set the correct date.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/router/rc/ntp.c

    r31758 r32045  
    8787
    8888        if (((servers = nvram_get("ntp_server")) == NULL)
    89             || (*servers == 0))
    90                 servers = "216.239.35.4 216.239.35.8 216.239.35.12 pool.ntp.org";
     89            || (*servers == 0)
     90            || nvram_matchi("dns_crypt", 1)){
     91                servers = "8.8.8.8 216.239.35.4 216.239.35.8 pool.ntp.org";
     92        }
    9193
    9294        char *argv[] = { "ntpclient", servers, NULL };
Note: See TracChangeset for help on using the changeset viewer.