You don't need it, ```Msf::Exploit::Remote::HttpClient``` already provides a peer method which returns it.