Skip to content

Commit

Permalink
wifidog API 端口采用非固定端口
Browse files Browse the repository at this point in the history
  • Loading branch information
imldy committed Oct 3, 2021
1 parent daad516 commit 9377a75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gwa.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def __init__(self, client: Client, account: Account):
self.account = account

def get_auth_state(self) -> Response:
auth_state_url = "http://{}:8060/wifidog/get_auth_state".format(self.client.gw_address)
auth_state_url = "http://{}:{}/wifidog/get_auth_state".format(self.client.gw_address, self.client.gw_port)
resp = self.session.get(auth_state_url)
return resp

Expand Down Expand Up @@ -207,7 +207,7 @@ def requests_login_link(self):
print(resp.url)

def out_login(self, reason='1'):
url = 'http:/{}:8060/wifidog/userlogout'.format(self.client.gw_address)
url = 'http:/{}:{}/wifidog/userlogout'.format(self.client.gw_address, self.client.gw_port)
# get方式url后面的数据
url_data = {
"ip": self.client.ip,
Expand Down

0 comments on commit 9377a75

Please sign in to comment.