Commit 084689f2 by Michael Pastushkov

x

parent 46d72ef6
......@@ -371,7 +371,8 @@ int use(void)
perror("use() - PEEK");
}
if (rc.my_addr.sin_port == 0) {
rc.my_addr = client_addr;
rc.my_addr.sin_addr.s_addr = client_addr.sin_addr.s_addr;
rc.my_addr.sin_port = client_addr.sin_port;
if (options.log > 1)
printf("my address %s:%d\tpid: %d\n", inet_ntoa(client_addr.sin_addr), ntohs(client_addr.sin_port), getpid());
} else {
......
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