mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-15 16:19:28 +02:00
parent
e022a86c47
commit
c97a407633
@ -564,7 +564,7 @@ begin
|
||||
end;
|
||||
addr.family := AF_INET;
|
||||
addr.port := ShortHostToNet(FPort);
|
||||
addr.addr := a.s_addr;
|
||||
addr.addr := HostToNet(a.s_addr);
|
||||
|
||||
If Sockets.fpConnect(ASocket, @addr, sizeof(addr))<>0 then
|
||||
raise ESocketError.Create(seConnectFailed, [Format('%s:%d',[FHost, FPort])]);
|
||||
|
Loading…
Reference in New Issue
Block a user