Skip to content

Commit

Permalink
openvpn: allow longer wait for ntp update before starting server/client
Browse files Browse the repository at this point in the history
  • Loading branch information
John Bacho committed Mar 15, 2016
1 parent fae1f5f commit 77267ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions release/src/router/rc/openvpn.c
Expand Up @@ -1549,8 +1549,8 @@ void start_vpn_eas()

if (strlen(nvram_safe_get("vpn_serverx_eas")) == 0 && strlen(nvram_safe_get("vpn_clientx_eas")) == 0) return;
// wait for time sync for a while
i = 10;
while (time(0) < 1325376000 && i--) {
i = 60;
while (time(0) < 1325376000 && i--) { //another way to check ntp_ready, system time < 01-Jan-2012
sleep(1);
}

Expand Down

0 comments on commit 77267ab

Please sign in to comment.