reresolve-dns: use $EPOCHSECONDS instead of $(date +%s)

Alexis gg alexisgandroid at
Sat Feb 12 02:20:39 UTC 2022

This commit breaks everything on older OSes (esp. Centos 7):

There is no check on the bash's version, the built-in variable
$EPOCHSECONDS is available only from bash 5.

This isn't an improvement, $(date +%s) is stable from much older
versions and will stay stable in future bash versions.

More information about the WireGuard mailing list