windows fixes

pull/1319/head
Jeff Becker 4 years ago
parent dde6bbeeb8
commit 876b8db1a1
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -198,7 +198,11 @@ main(int argc, char* argv[])
#ifdef _WIN32
// strip off the "::ffff."
ifname = maybe_status->at("result")["services"][endpoint]["ifaddr"];
ifname = ifname.substr(7);
const auto pos = ifname.find("/");
if (pos != std::string::npos)
{
ifname = ifname.substr(0, pos);
}
#else
ifname = maybe_status->at("result")["services"][endpoint]["ifname"];
#endif

Loading…
Cancel
Save