mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-15 02:44:20 -05:00
solve a bug in the load list af connect mgr
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2020 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
3742d3bd8b
commit
72d9eb2aef
@ -2997,14 +2997,15 @@ bool p3ConnectMgr::loadList(std::list<RsItem *> load)
|
||||
vitem->print(std::cerr, 10);
|
||||
std::cerr << std::endl;
|
||||
#endif
|
||||
if(vitem->tlvkvs.pairs.front().key == "USE_EXTR_IP_FINDER")
|
||||
{
|
||||
use_extr_addr_finder = (vitem->tlvkvs.pairs.front().value == "TRUE") ;
|
||||
std::cerr << "setting use_extr_addr_finder to " << use_extr_addr_finder << std::endl ;
|
||||
} else if (vitem->tlvkvs.pairs.front().key == "ALLOW_TUNNEL_CONNECTION")
|
||||
{
|
||||
allow_tunnel_connection = (vitem->tlvkvs.pairs.front().value == "TRUE") ;
|
||||
std::cerr << "setting allow_tunnel_connection to " << allow_tunnel_connection << std::endl ;
|
||||
std::list<RsTlvKeyValue>::iterator kit;
|
||||
for(kit = vitem->tlvkvs.pairs.begin(); kit != vitem->tlvkvs.pairs.end(); kit++) {
|
||||
if(kit->key == "USE_EXTR_IP_FINDER") {
|
||||
use_extr_addr_finder = (kit->value == "TRUE");
|
||||
std::cerr << "setting use_extr_addr_finder to " << use_extr_addr_finder << std::endl ;
|
||||
} else if (kit->key == "ALLOW_TUNNEL_CONNECTION") {
|
||||
allow_tunnel_connection = (kit->value == "TRUE");
|
||||
std::cerr << "setting allow_tunnel_connection to " << allow_tunnel_connection << std::endl ;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user