Log the listening address and port

Signed-off-by: Jim Ramsay <i.am@jimramsay.com>
pull/163/head
Jim Ramsay 2022-09-30 20:41:24 -04:00 committed by Andri Yngvason
parent 9e85093a6d
commit 7c03f0d6e7
1 changed files with 4 additions and 0 deletions

View File

@ -534,6 +534,10 @@ int init_nvnc(struct wayvnc* self, const char* addr, uint16_t port, bool is_unix
nvnc_log(NVNC_LOG_ERROR, "Failed to bind to address");
return -1;
}
if (is_unix)
nvnc_log(NVNC_LOG_INFO, "Listening for connections on %s", addr);
else
nvnc_log(NVNC_LOG_INFO, "Listening for connections on %s:%d", addr, port);
self->nvnc_display = nvnc_display_new(0, 0);
if (!self->nvnc_display)