Skip to content

Commit 93f385b

Browse files
committed
2.0.0-20250208
1 parent 76788e5 commit 93f385b

6 files changed

Lines changed: 3 additions & 3 deletions

File tree

client/bin/aftpx-x64.exe

0 Bytes
Binary file not shown.

client/bin/aftpx.exe

0 Bytes
Binary file not shown.

server/bin/aftpxserver-x64.exe

512 Bytes
Binary file not shown.

server/bin/aftpxserver.exe

0 Bytes
Binary file not shown.

server/src/Service.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ HRESULT CService::OnIomsgNotify( uint64_t lParam1, uint64_t lAction, IAsynIoOper
248248
{
249249
if( params.empty() != false ||
250250
m_setsfile.hasExist(info->user + ".home") == false || //没有配置用户帐号
251-
info->user != "anonymous" && m_setsfile.getString(info->user, "password") != params ) //密码错误
251+
info->user != "anonymous" && m_setsfile.getString(info->user + ".password") != params ) //密码错误
252252
{
253253
info->spCtrlTcpSocket->SendPacket(STRING_from_string("530"), STRING_from_string("User can't login."), 0, 0);
254254
return info->spCtrlTcpSocket->Read(lpAsynIoOperation);
@@ -257,7 +257,7 @@ HRESULT CService::OnIomsgNotify( uint64_t lParam1, uint64_t lAction, IAsynIoOper
257257
info->spCtrlTcpSocket->SendPacket(STRING_from_string("203"), STRING_from_string("Login successful."), 0, 0);
258258

259259
//初始化用户的主目录
260-
info->root = m_setsfile.getString(info->user, "home");
260+
info->root = m_setsfile.getString(info->user + ".home");
261261
info->path = "/"; //根目录
262262
info->mode = "A"; //传输类型
263263

server/src/Service.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class CService : public asyn_message_events_impl
8686
if( size > 0 )
8787
{
8888
m_cert_p12.assign((char*)temp, size);
89-
m_password = m_setsfile.getString("ssl", "password");
89+
m_password = m_setsfile.getString("ssl.password");
9090
}
9191
}
9292
else

0 commit comments

Comments
 (0)