mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-15 15:19:25 +02:00
fcl-net: comment: TInetServer.SockToStream should be using TServerSocketStream
This commit is contained in:
parent
21b135a6ec
commit
5271d19585
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user