support requesting UPnP and NAT-PMP routers for our external IP address
This commit is contained in:
@@ -193,11 +193,11 @@ struct callback_info
|
||||
|
||||
std::list<callback_info> callbacks;
|
||||
|
||||
void callback(int mapping, int port, error_code const& err)
|
||||
void callback(int mapping, address const& ip, int port, error_code const& err)
|
||||
{
|
||||
callback_info info = {mapping, port, err};
|
||||
callbacks.push_back(info);
|
||||
std::cerr << "mapping: " << mapping << ", port: " << port
|
||||
std::cerr << "mapping: " << mapping << ", port: " << port << ", IP: " << ip
|
||||
<< ", error: \"" << err.message() << "\"\n";
|
||||
//TODO: store the callbacks and verify that the ports were successful
|
||||
}
|
||||
|
Reference in New Issue
Block a user