Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TCP sendto removal + error when UDP for hostnames
- UDP inet_pton(remote_ip)'s result is not checked -> the server ends up sending packets to the null address when a hostname is given instead of a IPv4 address. A error is now raised - TCP is using sendto() instead of send(). We can thus remove a useless inet_pton() call (which moreover differs from the gethostbyaddr used in setup_port() - possible issues when using hostnames) Signed-off-by: Benoit Maurin <[email protected]>
- Loading branch information