mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -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
21 lines
471 B
PowerShell
21 lines
471 B
PowerShell
function New-IcingaTCPClient()
|
|
{
|
|
param(
|
|
[System.Net.Sockets.TcpListener]$Socket = $null
|
|
);
|
|
|
|
if ($null -eq $Socket) {
|
|
return $null;
|
|
}
|
|
|
|
[System.Net.Sockets.TcpClient]$Client = $Socket.AcceptTcpClient();
|
|
|
|
Write-IcingaDebugMessage -Message (
|
|
[string]::Format(
|
|
'New incoming client connection for endpoint {0}',
|
|
(Get-IcingaTCPClientRemoteEndpoint -Client $Client)
|
|
)
|
|
);
|
|
|
|
return $Client;
|
|
}
|