Commit bfcd7481 authored by aligungr's avatar aligungr

IPv6 support

parent 27262cba
...@@ -34,7 +34,7 @@ void UdpServer::Send(const InetAddress &address, const uint8_t *buffer, size_t b ...@@ -34,7 +34,7 @@ void UdpServer::Send(const InetAddress &address, const uint8_t *buffer, size_t b
{ {
int version = address.getIpVersion(); int version = address.getIpVersion();
if (version != 4 && version != 6) if (version != 4 && version != 6)
throw std::runtime_error{"UdpServer::Send failure: Invalid IP version on"}; throw std::runtime_error{"UdpServer::Send failure: Invalid IP version"};
for (const Socket &s : sockets) for (const Socket &s : sockets)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment