Update server.py

This commit is contained in:
Namhyeon Go 2024-03-04 23:00:58 +09:00 committed by GitHub
parent 6185279e39
commit d8df399d1a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -167,7 +167,7 @@ def jsonrpc2_server(conn, id, method, params):
else: else:
rpcmethod = Extension.get_rpcmethod(method) rpcmethod = Extension.get_rpcmethod(method)
if rpcmethod: if rpcmethod:
rpcmethod.dispatch("call", id, params) rpcmethod.dispatch("call", id, params, conn)
def proxy_connect(webserver, conn): def proxy_connect(webserver, conn):
hostname = webserver.decode(client_encoding) hostname = webserver.decode(client_encoding)
@ -526,7 +526,7 @@ class Extension():
def test(self, filtered, data, webserver, port, scheme, method, url): def test(self, filtered, data, webserver, port, scheme, method, url):
print ("[*] Not implemented") print ("[*] Not implemented")
def dispatch(self, type, id, params): def dispatch(self, type, id, params, conn = None):
print ("[*] Not implemented") print ("[*] Not implemented")
if __name__== "__main__": if __name__== "__main__":