Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
xjtu-men committed Dec 27, 2023
0 parents commit aae0bf9
Show file tree
Hide file tree
Showing 7 changed files with 25,248 additions and 0 deletions.
29 changes: 29 additions & 0 deletions config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
from enum import Enum, auto

TRUSTED_HOSTNAMES = '''
xjtu.app
xjtu.men
xjtu.live
# cf.xjtu.live
# ipv4.xjtu.live
# ipv6.xjtu.live
# us.xjtu.live
# jp.xjtu.live
# hk.xjtu.live
# direct.xjtu.live
'''
TRUSTED_HOSTNAMES = [i.strip() for i in TRUSTED_HOSTNAMES.strip().splitlines()
if len(i.strip()) != 0 and not i.strip().startswith('#')]
TRUSTED_HOSTNAMES = set(TRUSTED_HOSTNAMES)

name_of = lambda name, key: f'xjtumen-share-session-{name}-{key}'


class AttrDict(dict):
__setattr__ = dict.__setitem__
__getattr__ = dict.__getitem__

class Status(int, Enum):
PENDING = auto()
FINISHED = auto()

Loading

0 comments on commit aae0bf9

Please sign in to comment.