diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2020-11-16 22:26:59 +0100 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2021-06-10 22:07:59 +0200 |
commit | 39770f8097a3ec539e7737b5b522d753239f1c27 (patch) | |
tree | 2bc3684688fde09ad78ac1d630e7dd25b5e65a0f | |
parent | 97f631c3b7a868eb01ffc6c90f5a58ef1f444d30 (diff) |
debug bind
-rw-r--r-- | src/sock.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |