Skip to content

Commit 9f20066

Browse files
authored
Merge pull request #10 from Ccapton/develop
Develop
2 parents bad54b9 + 46f9b8a commit 9f20066

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# [brook](https://github.com/txthinking/brook)-web
2-
### [brook](https://github.com/txthinking/brook)程序服务端Web后台管理服务器(Linux|MacOS),基于python、flask、flask-restful,配合[caddy](https://github.com/mholt/caddy)反向代理https
2+
### [brook](https://github.com/txthinking/brook)程序服务端Web后台管理服务器(Linux|MacOS),基于python、flask、flask-restful
3+
4+
### [安全性说明WiKi](https://github.com/Ccapton/brook-web/wiki/%E5%AE%89%E5%85%A8%E6%80%A7%E8%AF%B4%E6%98%8E)
5+
### [点我查看项目WiKi](https://github.com/Ccapton/brook-web/wiki)
36

47
<div align="center">
58
<img src="https://raw.githubusercontent.com/Ccapton/brook-web/master/image/brook-web.jpeg" height="350" width="400" >

brook-web.py

+2
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,8 @@ def record_state(service_type=-1):
588588
current_server['state'] = 0
589589
if service_type == SERVICE_TYPE_SOCKS5:
590590
current_server['username'] = server['username']
591+
elif service_type == SERVICE_TYPE_SS:
592+
current_server['encode_method'] = 'aes-256-cfb'
591593
current_server['ip'] = host_ip
592594
if server.get('info'):
593595
current_server['info'] = server['info']

static/scripts/brook.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ function update_ui(brook_state_json) {
292292
}
293293
var linked_num_item = '<p class="port-detail-p">连接:'+state_jsons[j][i].linked_num+'</p>';
294294
var psw_item = '<p class="port-detail-p">密码:'+state_jsons[j][i].psw+'</p>';
295-
var encode_method_item = '<p class="port-detail-p">加密方式:aes-256-cfb</p>';
295+
296296
var username_item = '<p class="port-detail-p">用户:'+state_jsons[j][i].username+'</p>';
297297
var info_items = '';
298298
var link_copy_item = '<a href="#myModal4" data-toggle="modal"><span id="copy-link-btn'+j+'-'+i+'" class="fui-link copy-link-btn" ></span></a>';
@@ -305,6 +305,7 @@ function update_ui(brook_state_json) {
305305
else
306306
info_items = username_item + psw_item +linked_num_item;
307307
}else if (j == 1){
308+
var encode_method_item = '<p class="port-detail-p">加密方式:'+state_jsons[j][i].encode_method+'</p>';
308309
info_items = psw_item + encode_method_item + linked_num_item;
309310
}else if (j == 0){
310311
info_items = psw_item + linked_num_item;
@@ -391,7 +392,7 @@ function update_ui(brook_state_json) {
391392
}
392393
}else if(j == 1){
393394
$(port_detail_p[2]).text("密码:"+state_jsons[j][i].psw);
394-
$(port_detail_p[3]).text("加密方式:aes-256-cfb");
395+
$(port_detail_p[3]).text("加密方式:"+state_jsons[j][i].encode_method);
395396
$(port_detail_p[4]).text("连接:"+state_jsons[j][i].linked_num);
396397
}else if(j == 0){
397398
$(port_detail_p[2]).text("密码:"+state_jsons[j][i].psw);

0 commit comments

Comments
 (0)