icinga-powershell-framework/lib/webserver/Get-IcingaTCPClientRemoteEndpoint.psm1

13 lines
226 B
PowerShell
Raw Normal View History

function Get-IcingaTCPClientRemoteEndpoint()
{
param(
[System.Net.Sockets.TcpClient]$Client = $null
);
if ($null -eq $Client) {
return 'unknown';
}
return $Client.Client.RemoteEndPoint;
}