mirror of
https://github.com/markqvist/tncattach.git
synced 2025-08-04 06:42:25 -04:00
Fixed accidental removal of line
This commit is contained in:
parent
671ea5dda0
commit
de83bc9f21
2
TCP.c
2
TCP.c
@ -11,6 +11,8 @@ int open_tcp(char* ip, int port) {
|
|||||||
struct hostent *server;
|
struct hostent *server;
|
||||||
struct sockaddr_in serv_addr;
|
struct sockaddr_in serv_addr;
|
||||||
|
|
||||||
|
server = gethostbyname(ip);
|
||||||
|
|
||||||
if (server == NULL) {
|
if (server == NULL) {
|
||||||
perror("Error resolving host");
|
perror("Error resolving host");
|
||||||
exit(1);
|
exit(1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user