diff --git a/app/models.py b/app/models.py index 2f57ece..7da3817 100644 --- a/app/models.py +++ b/app/models.py @@ -69,7 +69,7 @@ class Proxy: return False def render(self): - content = f'function is{self.name}(h) {{\n' + content = f'function {self.function_name}(h) {{\n' for target in self.__targets: content += f'\tif (shExpMatch(h, "{target}")) return true;\n' return f'{content}\treturn false;\n}}'