I'm currently trying to connect to a FTP-Server over a Socks5-Proxy with Synapse and Lazarus. While everything works well under Windows, the same code under (k)ubuntu fails when trying to connect to the Socks-Proxy. Some debugging shows that in the unit synautil.pas the function CodeInt() returns a result with the bytes swapped:
Changing result[1] := AnsiChar(Value div 256); result[2] := AnsiChar(Value mod 256); to result[2] := AnsiChar(Value div 256); result[1] := AnsiChar(Value mod 256); corrects it and makes connections now possible, but now the code is different from WINDOWS - so I think the real bug is anywhere else. Does anyone have an idea? Dets ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ synalist-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/synalist-public
