* unify CONFIG option for DHT stunner

* implement optional (turned off by default) usage of dht stunner to determin external ip (this can be usefull for some corner case setups)
This commit is contained in:
sehraf 2020-02-05 20:11:53 +01:00
parent e91d877af2
commit 6f9d875fc6
No known key found for this signature in database
GPG key ID: DF09F6EAE356B2C6
2 changed files with 22 additions and 5 deletions

View file

@ -712,8 +712,10 @@ void p3NetMgrIMPL::netExtCheck()
}
#ifdef ALLOW_DHT_STUNNER
// (cyril) I disabled this because it's pretty dangerous. The DHT can report a wrong address quite easily
// if the other DHT peers are not collaborating.
// (cyril) I disabled this because it's pretty dangerous. The DHT can report a wrong address quite easily
// if the other DHT peers are not collaborating.
// (sehraf) For the record: The udp stunner uses multiple (as for now: two) peers to ensure that the IP recieved is the correct one, see UdpStunner::locked_checkExternalAddress()
// Nevertheless this stays a more risky method to determine the external ip address.
/* Next ask the DhtStunner */
{