Skip to content

Commit

Permalink
feat: set default url to net.zju.edu.cn
Browse files Browse the repository at this point in the history
  • Loading branch information
Mythologyli committed Oct 12, 2023
1 parent 2c570e4 commit 393c081
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion weblogin.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
exit(0)

ip = ""
url = "https://net2.zju.edu.cn"
url = "https://net.zju.edu.cn"

for opt, arg in opts:
if opt in ['-u', '--username']:
Expand Down Expand Up @@ -282,6 +282,7 @@ def logout():
session.mount('https://', SourceAddressAdapter(ip))

session.trust_env = False
session.verify = False

if action == 'login':
init()
Expand Down

0 comments on commit 393c081

Please sign in to comment.