Hi all,
I have a simple server (included) that has stopped working due to some changes to fphttpserver or the sockets code.
The problem, as far as my limited knowledge goes, seems to stem from FSocket.RemoteEndpoint.First.Address in fphttpserver.pp
Replacing the FSocket.RemoteEndpoint.First.Address with HostAddrToStr(Data.RemoteAddress.sin_addr) - the old code - fixes the issue.
Printing out FSocket.RemoteEndpoint.First.Address displays nothing.
To test the included program, run it and "curl -d some=data http://127.0.0.1:8889"
FPC 3.3.1 (latest) Linux x86_64 (Debian 13.5)
Keep up the great work,
Regards,
David
