コミットを比較
3 コミット
45ca44ef48
...
ed8ba4aacc
作成者 | SHA1 | 日付 |
---|---|---|
n9k | ed8ba4aacc | |
n9k | 51ff285067 | |
n9k | b9c2d89a5a |
|
@ -13,7 +13,7 @@ from anonstream.quart import Quart
|
|||
from anonstream.utils.captcha import create_captcha_factory, create_captcha_signer
|
||||
from anonstream.utils.user import generate_blank_allowedness
|
||||
|
||||
__version__ = '1.6.5'
|
||||
__version__ = '1.6.4'
|
||||
|
||||
def create_app(toml_config):
|
||||
app = Quart('anonstream', static_folder=None)
|
||||
|
|
|
@ -4,19 +4,19 @@
|
|||
from anonstream.control.spec.common import Str, End
|
||||
from anonstream.control.exceptions import ControlSocketExit
|
||||
|
||||
async def cmd_exit():
|
||||
async def cmd_quit():
|
||||
raise ControlSocketExit
|
||||
|
||||
async def cmd_exit_help():
|
||||
normal = ['exit', 'help']
|
||||
async def cmd_quit_help():
|
||||
normal = ['quit', 'help']
|
||||
response = (
|
||||
'Usage: exit\n'
|
||||
'Usage: quit\n'
|
||||
'Commands:\n'
|
||||
' exit......close the connection\n'
|
||||
' quit......close the connection\n'
|
||||
)
|
||||
return normal, response
|
||||
|
||||
SPEC = Str({
|
||||
None: End(cmd_exit),
|
||||
'help': End(cmd_exit_help),
|
||||
None: End(cmd_quit),
|
||||
'help': End(cmd_quit_help),
|
||||
})
|
||||
|
|
読み込み中…
新しいイシューから参照