Fixed accidental removal of line

This commit is contained in:
Mark Qvist 2020-06-24 14:44:30 +02:00
parent 671ea5dda0
commit de83bc9f21
1 changed files with 2 additions and 0 deletions

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);