You don't need this line, the Msf::Exploit::Remote::HttpClient already provides you with a peer method, which returns just this :)