See https://github.com/limhoff-r7/metasploit-framework/pull/10#r7927747