[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] Re: #1320 [Tor - Tor client]: Tor/Vidalia report wrong hostname on same IP
#1320: Tor/Vidalia report wrong hostname on same IP
-------------------------------+--------------------------------------------
Reporter: downie | Type: defect
Status: new | Priority: minor
Component: Tor - Tor client | Version: 0.2.1.24
Resolution: None |
-------------------------------+--------------------------------------------
Comment(by mwenge):
Suspect it's this:
/** Adds <b>stream</b> to its associated circuit on the list of all
circuits. */
void
NetViewer::addStream(const Stream &stream)
{
QString target = stream.targetAddress();
QHostAddress addr(target);
/* If the stream's target has an IP address instead of a host name,
* check our cache for an existing reverse address mapping. */
if (!addr.isNull() && _addressMap.isMapped(target)) {
/* Replace the IP address in the stream event with the original
* hostname */
ui.treeCircuitList->addStream(
Stream(stream.id(), stream.status(), stream.circuitId(),
_addressMap.mappedTo(target), stream.targetPort()));
} else {
ui.treeCircuitList->addStream(stream);
}
}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/1320#comment:4>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online