Update server.py

This commit is contained in:
Namhyeon Go 2024-03-06 13:48:14 +09:00 committed by GitHub
parent 4eab93a5ef
commit d0d640ec72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -495,9 +495,9 @@ class Extension():
return None
@classmethod
def get_connector(cls, method):
def get_connector(cls, connection_type):
for extension in cls.extensions:
if extension.type == "connector" and extension.method == method:
if extension.type == "connector" and extension.connection_type = connection_type:
return extension
return None
@ -523,8 +523,9 @@ class Extension():
return data
def __init__(self):
self.type = ""
self.method = ""
self.type = None
self.method = None
self.connection_type = None
def test(self, filtered, data, webserver, port, scheme, method, url):
raise NotImplementedError