ssh-generator: do not log unusable CID
For consistency with ssh-issue output, do not log about the CID if it is not a usable destination. (cherry picked from commit 0d59bcb6944d1f34e8eca9208af198f5357e8535)
This commit is contained in:
committed by
Luca Boccassi
parent
fd34e93645
commit
7457840e90
@@ -250,8 +250,12 @@ static int add_vsock_socket(
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
log_debug("Binding SSH to AF_VSOCK vsock::22.\n"
|
||||
"→ connect via 'ssh vsock/%u' from host", local_cid);
|
||||
if (VSOCK_CID_IS_REGULAR(local_cid))
|
||||
log_debug("Binding SSH to AF_VSOCK vsock::22.\n"
|
||||
"→ connect via 'ssh vsock/%u' from host", local_cid);
|
||||
else
|
||||
log_debug("Binding SSH to AF_VSOCK vsock::22.");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user