Fixed accidental removal of line

This commit is contained in:
Mark Qvist 2020-06-24 14:44:30 +02:00
parent 671ea5dda0
commit de83bc9f21

2
TCP.c
View File

@ -11,6 +11,8 @@ int open_tcp(char* ip, int port) {
struct hostent *server;
struct sockaddr_in serv_addr;
server = gethostbyname(ip);
if (server == NULL) {
perror("Error resolving host");
exit(1);