File tree 3 files changed +9
-3
lines changed
3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
1
# [ 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 )
3
6
4
7
<div align =" center " >
5
8
<img src =" https://raw.githubusercontent.com/Ccapton/brook-web/master/image/brook-web.jpeg " height =" 350 " width =" 400 " >
Original file line number Diff line number Diff line change @@ -588,6 +588,8 @@ def record_state(service_type=-1):
588
588
current_server ['state' ] = 0
589
589
if service_type == SERVICE_TYPE_SOCKS5 :
590
590
current_server ['username' ] = server ['username' ]
591
+ elif service_type == SERVICE_TYPE_SS :
592
+ current_server ['encode_method' ] = 'aes-256-cfb'
591
593
current_server ['ip' ] = host_ip
592
594
if server .get ('info' ):
593
595
current_server ['info' ] = server ['info' ]
Original file line number Diff line number Diff line change @@ -292,7 +292,7 @@ function update_ui(brook_state_json) {
292
292
}
293
293
var linked_num_item = '<p class="port-detail-p">连接:' + state_jsons [ j ] [ i ] . linked_num + '</p>' ;
294
294
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
+
296
296
var username_item = '<p class="port-detail-p">用户:' + state_jsons [ j ] [ i ] . username + '</p>' ;
297
297
var info_items = '' ;
298
298
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) {
305
305
else
306
306
info_items = username_item + psw_item + linked_num_item ;
307
307
} else if ( j == 1 ) {
308
+ var encode_method_item = '<p class="port-detail-p">加密方式:' + state_jsons [ j ] [ i ] . encode_method + '</p>' ;
308
309
info_items = psw_item + encode_method_item + linked_num_item ;
309
310
} else if ( j == 0 ) {
310
311
info_items = psw_item + linked_num_item ;
@@ -391,7 +392,7 @@ function update_ui(brook_state_json) {
391
392
}
392
393
} else if ( j == 1 ) {
393
394
$ ( 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 ) ;
395
396
$ ( port_detail_p [ 4 ] ) . text ( "连接:" + state_jsons [ j ] [ i ] . linked_num ) ;
396
397
} else if ( j == 0 ) {
397
398
$ ( port_detail_p [ 2 ] ) . text ( "密码:" + state_jsons [ j ] [ i ] . psw ) ;
You can’t perform that action at this time.
0 commit comments