• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

FFFTPのソースコードです。


Commit MetaInfo

Revisão342cbadfff643ffabaaf0a96cb9e02a2fbbdde31 (tree)
Hora2013-02-18 01:30:27
Autors_kawamoto <s_kawamoto@user...>
Commiters_kawamoto

Mensagem de Log

Fix bugs of handling of UPnP.

Mudança Sumário

Diff

Binary files a/FFFTP_Eng_Release/FFFTP.exe and b/FFFTP_Eng_Release/FFFTP.exe differ
Binary files a/Release/FFFTP.exe and b/Release/FFFTP.exe differ
--- a/connect.c
+++ b/connect.c
@@ -106,6 +106,8 @@ extern int PasvDefault;
106106 extern int QuickAnonymous;
107107 // 切断対策
108108 extern int TimeOut;
109+// UPnP対応
110+extern int UPnPEnabled;
109111
110112 /*===== ローカルなワーク =====*/
111113
@@ -2729,7 +2731,7 @@ SOCKET GetFTPListenSocketIPv4(SOCKET ctrl_skt, int *CancelCheckWork)
27292731 a = (char *)&saTmpAddr.sin_addr;
27302732 p = (char *)&saCtrlAddr.sin_port;
27312733 // UPnP対応
2732- if(IsUPnPLoaded() == YES)
2734+ if(IsUPnPLoaded() == YES && UPnPEnabled == YES)
27332735 {
27342736 if(AddPortMapping(AddressToStringIPv4(Adrs, &saTmpAddr.sin_addr), ntohs(saCtrlAddr.sin_port)) == FFFTP_SUCCESS)
27352737 SetAsyncTableDataMapPort(listen_skt, ntohs(saCtrlAddr.sin_port));
@@ -2886,7 +2888,7 @@ SOCKET GetFTPListenSocketIPv6(SOCKET ctrl_skt, int *CancelCheckWork)
28862888 a = (char *)&saTmpAddr.sin6_addr;
28872889 p = (char *)&saCtrlAddr.sin6_port;
28882890 // UPnP対応
2889- if(IsUPnPLoaded() == YES)
2891+ if(IsUPnPLoaded() == YES && UPnPEnabled == YES)
28902892 {
28912893 if(AddPortMapping(AddressToStringIPv6(Adrs, &saTmpAddr.sin6_addr), ntohs(saCtrlAddr.sin6_port)) == FFFTP_SUCCESS)
28922894 SetAsyncTableDataMapPort(listen_skt, ntohs(saCtrlAddr.sin6_port));
--- a/main.c
+++ b/main.c
@@ -257,7 +257,7 @@ int LocalKanjiCode = KANJI_SJIS;
257257 // 自動切断対策
258258 int NoopEnable = NO;
259259 // UPnP対応
260-int UPnPEnabled = NO;
260+int UPnPEnabled = YES;
261261 time_t LastDataConnectionTime = 0;
262262
263263