Skip to content

Commit

Permalink
Merge pull request #1408 from pi-hole/fix/no_telnet_is_okay
Browse files Browse the repository at this point in the history
Don't enforce API sockets
  • Loading branch information
DL6ER authored Aug 21, 2022
2 parents d10b6a6 + 9e81025 commit fc2da51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ static int bind_to_telnet_socket(const enum telnet_type type, const char *stype)
if(socketdescriptor < 0)
{
logg("Error opening %s telnet socket: %s (%i)", stype, strerror(errno), errno);
exit(EXIT_FAILURE);
return -1;
}

const size_t addrlen = MAX(sizeof(struct sockaddr_un), MAX(sizeof(struct sockaddr_in), sizeof(struct sockaddr_in6)));
Expand Down

0 comments on commit fc2da51

Please sign in to comment.