https://github.com/rapid7/metasploit-framework/pull/3157/files#r11773568