Skip to content

Commit

Permalink
support practice mode
Browse files Browse the repository at this point in the history
  • Loading branch information
zardus committed Jul 12, 2024
1 parent ac0c45b commit 3025393
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions program-misuse/babysuid
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ hostname = socket.gethostname()
dojo_prefix = "program-misuse~level"
if hostname.startswith(dojo_prefix):
level = int(hostname[len(dojo_prefix):])
elif hostname.startswith("practice-"+dojo_prefix):
level = int(hostname[len(9+dojo_prefix):])
else:
level = int(sys.argv[1])

Expand Down

0 comments on commit 3025393

Please sign in to comment.