Allow duration strings for the autoconnect period, and update the period on rehash