mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
12 lines
226 B
PowerShell
12 lines
226 B
PowerShell
function Get-IcingaTCPClientRemoteEndpoint()
|
|
{
|
|
param(
|
|
[System.Net.Sockets.TcpClient]$Client = $null
|
|
);
|
|
|
|
if ($null -eq $Client) {
|
|
return 'unknown';
|
|
}
|
|
|
|
return $Client.Client.RemoteEndPoint;
|
|
}
|