@@ -67,7 +67,7 @@ void CALLBACK XEngine_Download_CBSend(LPCXSTR lpszClientAddr, XSOCKET hSocket, X
6767 {
6868 if (nMsgLen <= 0 )
6969 {
70- if (st_ServiceCfg.st_XProxy .st_XProxyPass . bDLPass )
70+ if (st_ServiceCfg.st_XProxy .bDLPass )
7171 {
7272 int nPLen = MAX_PATH;
7373 int nHttpCode = 0 ;
@@ -79,13 +79,13 @@ void CALLBACK XEngine_Download_CBSend(LPCXSTR lpszClientAddr, XSOCKET hSocket, X
7979
8080 Session_DLStroage_GetInfo (lpszClientAddr, &st_StorageInfo);
8181 Protocol_StoragePacket_UPDown (tszProxyStr, &nPLen, st_StorageInfo.tszFileDir , st_StorageInfo.tszBuckKey , st_StorageInfo.tszClientAddr , st_StorageInfo.ullRWCount , true , st_StorageInfo.tszFileHash );
82- if (APIClient_Http_Request (_X (" POST" ), st_ServiceCfg.st_XProxy .st_XProxyPass . tszDLPass , tszProxyStr, &nHttpCode))
82+ if (APIClient_Http_Request (_X (" POST" ), st_ServiceCfg.st_XProxy .tszDLPass , tszProxyStr, &nHttpCode))
8383 {
84- XLOG_PRINT (xhLog, XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_INFO, _X (" 下载客户端:%s,请求完成通知返回值:%d,文件:%s,地址:%s" ), lpszClientAddr, nHttpCode, st_StorageInfo.tszFileDir , st_ServiceCfg.st_XProxy .st_XProxyPass . tszDLPass );
84+ XLOG_PRINT (xhLog, XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_INFO, _X (" 下载客户端:%s,请求完成通知返回值:%d,文件:%s,地址:%s" ), lpszClientAddr, nHttpCode, st_StorageInfo.tszFileDir , st_ServiceCfg.st_XProxy .tszDLPass );
8585 }
8686 else
8787 {
88- XLOG_PRINT (xhLog, XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_ERROR, _X (" 下载客户端:%s,请求完成通知失败,可能对方服务没有开启,文件:%s,地址:%s" ), lpszClientAddr, st_StorageInfo.tszFileDir , st_ServiceCfg.st_XProxy .st_XProxyPass . tszDLPass );
88+ XLOG_PRINT (xhLog, XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_ERROR, _X (" 下载客户端:%s,请求完成通知失败,可能对方服务没有开启,文件:%s,地址:%s" ), lpszClientAddr, st_StorageInfo.tszFileDir , st_ServiceCfg.st_XProxy .tszDLPass );
8989 }
9090 }
9191 NetCore_TCPXCore_CBSendEx (xhNetDownload, lpszClientAddr);
@@ -156,7 +156,7 @@ bool XEngine_Task_HttpDownload(LPCXSTR lpszClientAddr, LPCXSTR lpszMsgBuffer, in
156156 }
157157 }
158158 // 验证用户
159- if (st_ServiceCfg.st_XProxy . st_XProxyAuth . bAuth )
159+ if (st_ServiceCfg.st_XAuth . bDLAuth )
160160 {
161161 XCHAR tszUserName[64 ];
162162 XCHAR tszUserPass[64 ];
@@ -174,15 +174,15 @@ bool XEngine_Task_HttpDownload(LPCXSTR lpszClientAddr, LPCXSTR lpszMsgBuffer, in
174174 XLOG_PRINT (xhLog, XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_ERROR, _X (" 下载客户端:%s,用户验证失败,错误:%lX" ), lpszClientAddr, StorageHelp_GetLastError ());
175175 return false ;
176176 }
177- if (_tcsxlen ( st_ServiceCfg.st_XProxy .st_XProxyAuth . tszAuthProxy ) > 0 )
177+ if (st_ServiceCfg.st_XProxy .bAuthPass )
178178 {
179179 int nBLen = 0 ;
180180 int nCode = 0 ;
181181 int nResponseCode = 0 ;
182182 XCHAR* ptszBody = NULL ;
183183
184184 Protocol_StoragePacket_BasicAuth (pSt_HTTPParam->tszHttpMethod , pSt_HTTPParam->tszHttpUri , lpszClientAddr, tszUserName, tszUserPass, tszSDBuffer, &nSDLen);
185- APIClient_Http_Request (_X (" POST" ), st_ServiceCfg.st_XProxy .st_XProxyAuth . tszAuthProxy , tszSDBuffer, &nResponseCode, &ptszBody, &nBLen);
185+ APIClient_Http_Request (_X (" POST" ), st_ServiceCfg.st_XProxy .tszAuthPass , tszSDBuffer, &nResponseCode, &ptszBody, &nBLen);
186186 if (200 != nResponseCode)
187187 {
188188 st_HDRParam.bIsClose = true ;
@@ -195,7 +195,7 @@ bool XEngine_Task_HttpDownload(LPCXSTR lpszClientAddr, LPCXSTR lpszMsgBuffer, in
195195 }
196196 Protocol_StorageParse_SpeedLimit (ptszBody, nSDLen, &nCode, &nLimit);
197197 BaseLib_OperatorMemory_FreeCStyle ((VOID**)&ptszBody);
198- XLOG_PRINT (xhLog, XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_INFO, _X (" 下载客户端:%s,代理服务:%s 验证通过,用户名:%s,密码:%s,值:%d" ), lpszClientAddr, st_ServiceCfg.st_XProxy .st_XProxyAuth . tszAuthProxy , tszUserName, tszUserPass, nCode);
198+ XLOG_PRINT (xhLog, XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_INFO, _X (" 下载客户端:%s,代理服务:%s 验证通过,用户名:%s,密码:%s,值:%d" ), lpszClientAddr, st_ServiceCfg.st_XProxy .tszAuthPass , tszUserName, tszUserPass, nCode);
199199 }
200200 else
201201 {
0 commit comments