Hi,
On 12/02/02(19:55) you "Wu Jiafu" <p2idqbdyi.ml@ml.delegate.org> wrote
in <_A2009@delegate-en.ML_>
|Thanks a lot for your kindly help. But after applying the patch, it does not
|work so well:
|
|SERVER_HOST=-
|SERVER_ADDR=(null)
|
|I added one line to the patched ftp.c, then it seems work:
|
|SERVER_HOST=test.domain.com
|SERVER_ADDR=192.168.0.1
|
|Since I am not quite understanding the structure of delegate, there might be
|lots of side-effects of this changing. Would you please have a look?
Thanks for your notice. I tried to minimize the patch before sending
it out, to do over minimization and sent it out without testing X-)
I remember that the patch for ftp.c:FTP_data_relay() was "if ... else"
statement originally. So I'll do like this in the official release.
xc = 0;
Verbose("FTP data-relay(%d,%d): bufsize=%d\n",src,dst,size);
+ strcpy(dataConn->dd_selector,D_SELECTOR);
+ if( FS->fs_host[0] )
+ wordScan(FS->fs_host,dataConn->sv.p_host); /* set REAL_HOST */
+ else
if( REAL_HOST[0] == 0 )
strcpy(dataConn->sv.p_host,"-"); /* for DST_PROTO */
else strcpy(dataConn->sv.p_host,REAL_HOST);
Cheers,
Yutaka
--
@ @ Yutaka Sato <y.sato@delegate.org> http://www.delegate.org/y.sato/
( - ) National Institute of Advanced Industrial Science and Technology (AIST)
_< >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
Do the more with the less -- B. Fuller