Skip to content

Commit

Permalink
Update server.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gnh1201 authored Mar 4, 2024
1 parent 551656f commit 6185279
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 6185279

Please sign in to comment.