mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 07:10:15 -05:00
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
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;
|
|
}
|