Commit 46d72ef6 by Michael Pastushkov

x

parent 24c5e6c0
......@@ -365,7 +365,7 @@ int use(void)
}
if (FD_ISSET(rc.client_socket, &io))
{
if (options.proto == SOCK_DGRAM) {
if (options.proto == SOCK_DGRAM && options.mode == MODE_SERVER) {
count_recv = recvfrom(rc.client_socket, buffer, sizeof(buffer), MSG_PEEK, (struct sockaddr *)&client_addr, &addr_len);
if (count_recv < 0) {
perror("use() - PEEK");
......
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