icinga-powershell-framework/lib/webserver/Get-IcingaTCPClientRemoteEndpoint.psm1
Lord Hepipud 3d875639e4 Feature Requests: Add Proxy Server support
Also re-arranges web content by using old content from lib/web into lib/webserver, while new lib/web contains the proxy configuration.
Fixes #19
2020-11-19 17:16:33 +01:00

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;
}