mirror of
https://github.com/gnh1201/caterpillar.git
synced 2025-09-06 18:01:07 +00:00
Update server.py
This commit is contained in:
parent
6185279e39
commit
d8df399d1a
|
@ -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__":
|
||||||
|
|
Loading…
Reference in New Issue
Block a user