Skip to content

Commit 5e2cbf9

Browse files
committed
v6.8.4
1. After the update, the software and panel directory permissions will be set to strict mode (it will be restored automatically after modification) 2. Increase the panel comprehensive anti-riot mechanism 3. Enhance the security of the panel session<br> 4. Enhanced panel entry verification mechanism 5. Optimize the terminal 6. Optimize the panel memory release mechanism Note 1: Version 6.8.2/6.9.11 has security issues, please be sure to upgrade to the latest version Note 2: After this update is successful, it will automatically log out and you need to log in again
1 parent 32cc87c commit 5e2cbf9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+5520
-1598
lines changed

.idea/deployment.xml

+14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

BT-Panel

+16-6
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,22 @@
55
# +-------------------------------------------------------------------
66
# | Copyright (c) 2015-2099 宝塔软件(http://bt.cn) All rights reserved.
77
# +-------------------------------------------------------------------
8-
# | Author: 黄文良 <[email protected]>
8+
# | Author: hwliang <[email protected]>
99
# +-------------------------------------------------------------------
10-
from gevent import monkey,__version__ as gevent_version
10+
from gevent import monkey
1111
monkey.patch_all()
1212
import os,sys,ssl
13+
if os.path.exists("/www/server/panel/class/BTPanel"):
14+
os.system("rm -rf /www/server/panel/class/BTPanel")
1315
os.chdir('/www/server/panel')
16+
if not 'class/' in sys.path:
17+
sys.path.insert(0,'class/')
1418
from BTPanel import app,sys,public
1519

1620
if __name__ == '__main__':
1721
pid = os.fork()
1822
if pid: sys.exit(0)
1923

20-
#os.umask(0)
2124
os.setsid()
2225

2326
_pid = os.fork()
@@ -34,9 +37,6 @@ if __name__ == '__main__':
3437
if os.path.exists('data/ipv6.pl'):
3538
HOST = "0:0:0:0:0:0:0:0"
3639
f.close()
37-
38-
from gevent.pywsgi import WSGIServer
39-
from geventwebsocket.handler import WebSocketHandler
4040

4141
is_debug = os.path.exists('data/debug.pl')
4242
keyfile = 'ssl/privateKey.pem'
@@ -50,11 +50,21 @@ if __name__ == '__main__':
5050
os.dup2(err_f.fileno(),sys.stderr.fileno())
5151
err_f.close()
5252

53+
import threading
54+
import jobs
55+
56+
job = threading.Thread(target=jobs.control_init)
57+
job.setDaemon(True)
58+
job.start()
59+
5360
if is_debug:
5461
ssl_context = None
5562
if is_ssl: ssl_context=(certfile,keyfile)
5663
app.run(host=HOST,port=PORT,threaded=True,debug=True,ssl_context=ssl_context)
5764
else:
65+
from gevent.pywsgi import WSGIServer
66+
from geventwebsocket.handler import WebSocketHandler
67+
5868
if is_ssl:
5969
ssl_context = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH)
6070
ssl_context.load_cert_chain(certfile=certfile,keyfile=keyfile)

BT-Task

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# +-------------------------------------------------------------------
66
# | Copyright (c) 2015-2099 宝塔软件(http://bt.cn) All rights reserved.
77
# +-------------------------------------------------------------------
8-
# | Author: 黄文良 <[email protected]>
8+
# | Author: hwliang <[email protected]>
99
# +-------------------------------------------------------------------
1010

1111
import os,sys

0 commit comments

Comments
 (0)