Hi Andreas, thak you very much for your reply. However I resolved the issue with some little changes: - libssh.h: added the element SSH_OPTIONS_BINDADDR in the enum ssh_options_e; - options.c: changed ssh_options_set, adding some statements to the switch, to handle the SSH_OPTIONS_BINDADDR, by updating the struct session. Using the SAFEFREE and the strdup to update the bindaddr char* (so as you have done to the other fields of the struct).
By some tests, looks like it's possible to bind any IP address from client side now. I like very much the job you have done with libssh, thank you very much ur like an hero ;o) -DB 2010/7/6 Andreas Schneider <[email protected]> > On Tuesday 29 June 2010 22:58:04 you wrote: > > > Is is possible to get your client that we can do some testing > > > here. We lack of example code for Windows :) > > > > Folks, > > Hey, > > maybe you want to try > > http://git.libssh.org/projects/libssh/libssh.git/snapshot/v0-4.zip > > this possibly fixes your problems. > > > Cheers, > > -- andreas > > >
