Run UPnP discovery in the background

This commit is contained in:
SChernykh
2023-03-20 10:56:18 +01:00
parent a7db46d69b
commit bb4c7f0298
5 changed files with 66 additions and 12 deletions

View File

@@ -247,6 +247,8 @@ bool str_to_ip(bool is_v6, const char* ip, raw_ip& result);
bool is_localhost(const std::string& host);
#ifdef WITH_UPNP
void init_upnp();
void destroy_upnp();
void add_portmapping(int external_port, int internal_port);
#endif