Skip to content

Commit

Permalink
[fix] 修改字段获取来源
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhangZhaoxuan committed Feb 27, 2024
1 parent 0e0cd90 commit d1942d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions top.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def __init__(self, host, port, username, password, ocr):
self.port = port
self.username = username
self.password = password
self.code_url = self.client_host + "/v1/get_gid?serverAddr=111.33.112.66&serverPort=10443&vpn_version=ngvone&auth_protocol=0&auth_port=10443&data_port=10443&data_protocol=0&cert_type=0&proxyType=&proxyAddr=&proxyPort=&proxyUser=&proxyPwd=&proxyDomain=&rnd=0.21450320730512473"
self.code_url = f"{self.client_host}/v1/get_gid?serverAddr={host}&serverPort={port}&vpn_version=ngvone&auth_protocol=0&auth_port={port}&data_port={port}&data_protocol=0&cert_type=0&proxyType=&proxyAddr=&proxyPort=&proxyUser=&proxyPwd=&proxyDomain=&rnd=0.21450320730512473"
self.auto_code_url = ocr
self.logout_url = self.client_host + "/v1/logout"
self.login_url = self.client_host + "/v1/login_by_pwd"
Expand Down Expand Up @@ -130,8 +130,8 @@ def login(self):
} ,
"vpn_version" :"ngvone",
"auth_protocol":"0" ,
"auth_port": "10443" ,
"data_port": "10443" ,
"auth_port": self.port ,
"data_port": self.port ,
"data_protocol": "0" ,
"cert_type": "0" ,
"remember_pwd": "off"
Expand Down

0 comments on commit d1942d9

Please sign in to comment.