diff options
author | 2004-02-02 00:10:43 +0000 | |
---|---|---|
committer | 2004-02-02 00:10:43 +0000 | |
commit | 7af7555ec6a24d242660333857b27c8e84de5083 (patch) | |
tree | 3d672dd2683547839616889f8177571f54bed1e2 /net-p2p/dctc/files | |
parent | touchups (diff) | |
download | historical-7af7555ec6a24d242660333857b27c8e84de5083.tar.gz historical-7af7555ec6a24d242660333857b27c8e84de5083.tar.bz2 historical-7af7555ec6a24d242660333857b27c8e84de5083.zip |
Added a patch that makes downloading in passive mode possible.
Diffstat (limited to 'net-p2p/dctc/files')
-rw-r--r-- | net-p2p/dctc/files/dctc-0.85.6-passive.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/net-p2p/dctc/files/dctc-0.85.6-passive.patch b/net-p2p/dctc/files/dctc-0.85.6-passive.patch new file mode 100644 index 000000000000..65775e2acf38 --- /dev/null +++ b/net-p2p/dctc/files/dctc-0.85.6-passive.patch @@ -0,0 +1,25 @@ +diff -Naur dctc-0.86.6-orig/src/keyboard_master.c dctc-0.85.6/src/keyboard_master.c +--- dctc-0.86.6-orig/src/keyboard_master.c 2003-10-01 19:16:35.000000000 +0200 ++++ dctc-0.85.6/src/keyboard_master.c 2003-11-02 15:36:43.000000000 +0100 +@@ -238,12 +238,15 @@ + { /* we are behind a firewall */ + /* so, the remote side wont be able to contact us */ + /* let's ask a reverse connection */ +- if(!user_in_list(hub_user_list,fields[2])) /* if the user is not here and we are behind a firewall, we cannot do anything */ +- goto abrt; +- +- LOCK_READ(user_info); +- send_dc_line(sck,"$RevConnectToMe",nickname,fields[2],NULL); +- UNLOCK_READ(user_info); ++ if(user_in_list(hub_user_list,fields[2])) { ++ LOCK_READ(user_info); ++ send_dc_line(sck,"$RevConnectToMe",nickname,fields[2],NULL); ++ UNLOCK_READ(user_info); ++ } else { ++ /* try a conditionnal download on other client */ ++ send_dc_line_to_dctc_link(fields[2],sck,"$RevConnectToMe",nickname,fields[2],NULL); ++ } ++ + disp_msg(DEBUG_MSG,"","/XDL in $RevConnectToMe",NULL); + } + else |