Skip to content

Commit a48ae8c

Browse files
Update discard_sessions.py
Added a way to make it work on servers not running API on port 443
1 parent 2f471a7 commit a48ae8c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples_python3/discard_sessions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
def main():
2626
# getting details from the user
2727
api_server = input("Enter server IP address or hostname:")
28+
port = input("Enter port(443 by default): ")
2829
username = input("Enter username: ")
2930

3031
if sys.stdin.isatty():
@@ -33,7 +34,7 @@ def main():
3334
print("Attention! Your password will be shown on the screen!")
3435
password = input("Enter password: ")
3536

36-
client_args = APIClientArgs(server=api_server)
37+
client_args = APIClientArgs(server=api_server,port=port)
3738

3839
with APIClient(client_args) as client:
3940

0 commit comments

Comments
 (0)