mirror of
https://github.com/gnh1201/caterpillar.git
synced 2025-02-11 09:25:00 +00:00
Update server.py
This commit is contained in:
parent
551656fa68
commit
6185279e39
|
@ -6,7 +6,7 @@
|
|||
# Namyheon Go (Catswords Research) <gnh1201@gmail.com>
|
||||
# https://github.com/gnh1201/caterpillar
|
||||
# Created at: 2022-10-06
|
||||
# Updated at: 2024-12-28
|
||||
# Updated at: 2024-03-04
|
||||
#
|
||||
|
||||
import argparse
|
||||
|
@ -166,7 +166,8 @@ def jsonrpc2_server(conn, id, method, params):
|
|||
print ("[*] relay destroyed: %s" % (id))
|
||||
else:
|
||||
rpcmethod = Extension.get_rpcmethod(method)
|
||||
rpcmethod.dispatch("call", id, params)
|
||||
if rpcmethod:
|
||||
rpcmethod.dispatch("call", id, params)
|
||||
|
||||
def proxy_connect(webserver, conn):
|
||||
hostname = webserver.decode(client_encoding)
|
||||
|
|
Loading…
Reference in New Issue
Block a user