diff --git a/src/main.cpp b/src/main.cpp index a0beee3..a2237d8 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -242,10 +242,11 @@ int main() { return 1; } + UPNPUrlsResource urls(devlist.get()); + #if defined(KUU_VERBOSE) std::cout << "Found: " << devs.front()->descURL << ", " << devs.front()->st << '\n'; - UPNPUrlsResource urls(devlist.get()); switch (urls.igd_reply()) { case UPNPUrlsResource::IGDValid: std::cout << "Found valid IGD: " << urls.urls()->controlURL << '\n';