Skip to content

Commit c3c8136

Browse files
committed
logout call needs token
1 parent 1babda3 commit c3c8136

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

contrib/load-tester/fire_requests.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ def main(targetIF, prefix, maxI):
3030
pass
3131
conn = HTTPConnection(target, PORT, timeout=10, source_address=(source, 0))
3232
conn.connect()
33-
conn.request("GET", "/wifidog/auth?token=" + str(uuid.uuid4()))
33+
token = str(uuid.uuid4())
34+
conn.request("GET", "/wifidog/auth?token=" + token )
3435
try:
3536
resp = conn.getresponse()
3637
# this causes wifidog to ask our mock auth server if the token is
@@ -40,7 +41,7 @@ def main(targetIF, prefix, maxI):
4041
pass
4142
conn = HTTPConnection(target, PORT, timeout=10, source_address=(source, 0))
4243
conn.connect()
43-
conn.request("GET", "/wifidog/auth?logout=1")
44+
conn.request("GET", "/wifidog/auth?logout=1&token=" + token)
4445
try:
4546
resp = conn.getresponse()
4647
resp.read()

0 commit comments

Comments
 (0)