mirror of
https://github.com/markqvist/tncattach
synced 2026-08-12 17:40:17 -04:00
Fixed accidental removal of line
This commit is contained in:
parent
671ea5dda0
commit
de83bc9f21
1 changed files with 2 additions and 0 deletions
2
TCP.c
2
TCP.c
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue