fcl-net: comment: TInetServer.SockToStream should be using TServerSocketStream

This commit is contained in:
mattias 2023-07-07 18:52:03 +02:00
parent 21b135a6ec
commit 5271d19585

View File

@ -1269,8 +1269,11 @@ Var
begin
H:=GetClientSocketHandler(aSocket);
aClass:=DefaultInetSocketClass;
// Should be: Result:=TServerSocketStream.Create(ASocket,H);
if aClass=Nil then
aClass:=TInetSocket;
aClass:=TInetSocket;
Result:=aClass.Create(ASocket,H);
(Result as TInetSocket).FHost:='';
(Result as TInetSocket).FPort:=FPort;