File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 3434 qb_client = qbittorrentapi .Client (
3535 host = g .config ['qb_api_ip' ],
3636 port = g .config ['qb_api_port' ],
37+ VERIFY_WEBUI_CERTIFICATE = False ,
3738 )
3839
3940
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ docker等环境下, 程序可以通过api远程管理qbittorrent
4949
5050参数说明
5151` use_qb_api ` 启用api通信
52- ` qb_api_ip ` qb的ip地址
52+ ` qb_api_ip ` qb的ip地址,若填写域名,请附上“http://”
5353` qb_api_port ` qb的端口
5454` qb_api_username ` qb的用户名
5555` qb_api_password ` qb的密码
Original file line number Diff line number Diff line change 66def check_qb_port_open (qb_api_ip , qb_api_port ):
77 # 检查端口可用性
88 a_socket = socket .socket (socket .AF_INET , socket .SOCK_STREAM )
9+ # 若填写域名则去掉协议名
10+ qb_api_ip = qb_api_ip .replace ("https://" ,"" )
911 location = (qb_api_ip , int (qb_api_port ))
1012 result_of_check = a_socket .connect_ex (location )
1113 if result_of_check == 0 :
You can’t perform that action at this time.
0 commit comments