完善文档和配置流程
This commit is contained in:
18
main.py
18
main.py
@@ -21,24 +21,22 @@ pip install librouteros
|
||||
- public: 公网 IP
|
||||
- mask: 公网子网掩码
|
||||
- private: 内网 IP
|
||||
- domain: 节点域名
|
||||
- cert: 证书文件路径
|
||||
|
||||
如果需要添加或修改配置项,从 config.*.bak.csv 文件复制配置项到 config.csv 文件中
|
||||
如果需要添加或修改配置项,修改 config.*.bak.csv 文件,并复制配置项到 config.csv 文件中
|
||||
|
||||
如果需要修改配置内容,在下面 “配置执行步骤” 部分添加或修改函数调用
|
||||
"""
|
||||
|
||||
threads = []
|
||||
failed = []
|
||||
|
||||
# 配置执行步骤
|
||||
steps = [
|
||||
configNet,
|
||||
configJgAuth,
|
||||
configJgMixOuts,
|
||||
configJgScripts,
|
||||
configJgLogs,
|
||||
configJgOuts,
|
||||
]
|
||||
|
||||
threads = []
|
||||
failed = []
|
||||
|
||||
|
||||
def main():
|
||||
# 加载配置文件
|
||||
@@ -81,7 +79,7 @@ def start(config):
|
||||
try:
|
||||
ctx = ssl.create_default_context()
|
||||
ctx.check_hostname = False
|
||||
ctx.load_verify_locations(f'certs/{config["cert"]}')
|
||||
ctx.load_verify_locations(f"certs/{config['cert']}")
|
||||
conn = connect(
|
||||
username="admin",
|
||||
password="wyongk9815",
|
||||
|
||||
Reference in New Issue
Block a user