From 9377a75a8e401bfa70cf33cbcb4f26bf05048405 Mon Sep 17 00:00:00 2001 From: imldy Date: Sun, 3 Oct 2021 09:12:21 +0800 Subject: [PATCH] =?UTF-8?q?wifidog=20API=20=E7=AB=AF=E5=8F=A3=E9=87=87?= =?UTF-8?q?=E7=94=A8=E9=9D=9E=E5=9B=BA=E5=AE=9A=E7=AB=AF=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gwa.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gwa.py b/gwa.py index 1ec04c1..36cbfb2 100644 --- a/gwa.py +++ b/gwa.py @@ -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 @@ -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,