make wpscan ruby 2.4.0 compatible

fixes #1044
This commit is contained in:
Christian Mehlmauer
2017-01-17 20:24:32 +01:00
parent 88bddd4f87
commit f6644eebf9
5 changed files with 7 additions and 17 deletions

View File

@@ -96,7 +96,9 @@ end
def update_required?
date = last_update
(true if date.nil?) or (date < 5.days.ago)
day_seconds = 24 * 60 * 60
five_days_ago = Time.now - (5 * day_seconds)
(true if date.nil?) or (date < five_days_ago)
end
# Define colors