motiontelemetry changes

This commit is contained in:
milek7
2018-01-18 19:56:46 +01:00
parent ea8171d9b0
commit 9f2be9cc23

View File

@@ -24,7 +24,7 @@ motiontelemetry::motiontelemetry()
if (!pe)
throw std::runtime_error("motiontelemetry: unknown protocol");
hints.ai_family = AF_UNSPEC;
hints.ai_socktype = SOCK_DGRAM;
hints.ai_socktype = pe->p_proto;
if (getaddrinfo(conf.address.c_str(), conf.port.c_str(), &hints, &res))
throw std::runtime_error("motiontelemetry: getaddrinfo failed");