Skip to content
This repository has been archived by the owner on Dec 24, 2024. It is now read-only.

Commit

Permalink
修复加密key无效bug,上传二进制文件
Browse files Browse the repository at this point in the history
  • Loading branch information
tkzcfc committed Dec 16, 2020
1 parent 193a96b commit 1e29c47
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 2 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
*.a

# Executables
*.exe
*.out
*.app

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ socks5 libuv

- **client_listenIP :** 客户端监听地址
- **client_listenPort :** 客户端监听端口
- **remoteIP :** 远程服务器地址
- **svr_listenIP :** 服务端监听地址
- **svr_listenPort :** 服务器监听端口
- **use_kcp :** 传输隧道是否使用kcp
Expand Down
Binary file added bin/client.exe
Binary file not shown.
12 changes: 12 additions & 0 deletions bin/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"client_listenIP": "0.0.0.0",
"svr_listenIP": "0.0.0.0",
"remoteIP": "127.0.0.1",
"client_listenPort": 8527,
"svr_listenPort": 1004,
"use_kcp": false,
"encry_method": "RC4",
"encry_key": "12@#abca",
"username": "",
"password": ""
}
Binary file added bin/server.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion common/Cypher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Cypher::Cypher(EncryMethod method, const char* key, uint32_t keyLen)
m_cacheBuf = NULL;
m_cacheLen = 0;

if(m_keyLen == 0)
if(keyLen == 0)
{
const char* defaultKey = "12@#";

Expand Down

0 comments on commit 1e29c47

Please sign in to comment.