Skip to content

Commit 9d430eb

Browse files
committed
Use the simpler 'version' command to get the version
1 parent 6588f92 commit 9d430eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/auxiliary/gather/memcached_extractor.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ def data_for_keys(keys = [])
8080
end
8181

8282
def determine_version
83-
sock.send("stats\r\n", 0)
83+
sock.send("version\r\n", 0)
8484
stats = sock.recv(4096)
85-
if /^STAT version (?<version>[\d\.]+)/ =~ stats
85+
if /^VERSION (?<version>[\d\.]+)/ =~ stats
8686
version
8787
else
8888
nil

0 commit comments

Comments
 (0)