Skip to content

Commit b78cb12

Browse files
committed
Ruby 2.2 support. See rapid7#8792
1 parent d7d6428 commit b78cb12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/linux/http/rancher_server.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def exploit
162162
wait_time = datastore['WAIT_TIMEOUT']
163163
vprint_status("Waiting up to #{wait_time} seconds until the docker container stops")
164164

165-
while wait_time.positive?
165+
while wait_time > 0
166166
sleep(sleep_time)
167167
wait_time -= sleep_time
168168

0 commit comments

Comments
 (0)