rapid7/metasploit-framework — pull request #961 by wchen-r7 (2012-10-24 07:37:44+00:00)
Title: Patch for NoMethodError undefined method `peerhost' for #<TCPSocket:fd 49>

According to the bug report: "Digging through the code, it seems smb_relay is passing a Ruby TCPSocket object and not a Rex::Socket::TCP object."

Link:
http://dev.metasploit.com/redmine/issues/7365