Add missing htons() call.

This commit is contained in:
Bartosz Taudul 2020-10-02 18:46:11 +02:00
parent 4791b63ef8
commit 0d82d6fe63

View File

@ -33,7 +33,7 @@ void ResolvService::Worker()
{
struct sockaddr_in addr = {};
addr.sin_family = AF_INET;
addr.sin_port = m_port;
addr.sin_port = htons( m_port );
char buf[128];