From aeee18457c5834b06f902f25ca2e7b80302b9f97 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Mon, 16 Nov 2020 22:26:59 +0100 Subject: debug bind --- src/sock.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sock.c b/src/sock.c index ba65111..7aa43e2 100644 --- a/src/sock.c +++ b/src/sock.c @@ -124,6 +124,10 @@ int opensock (const char *host, int port, const char *bind_to, const char *bind_ log_message(LOG_INFO, "opensock: opening connection to %s:%d", host, port); + if (bind_to) { + log_message(LOG_INFO, + "opensock: bind to %s or %s", bind_to, bind_to_alt); + } memset (&hints, 0, sizeof (struct addrinfo)); hints.ai_family = AF_UNSPEC; -- cgit v1.2.3