The Msf::Exploit::Remote::HttpClient mixin already includes a "peer" method which returns just it, so you don't need to define a variable peer here.