Merge pull request #204 from xmcp/xmcp-patch-1

fixes #201
This commit is contained in:
byt3bl33d3r 2015-10-22 12:31:51 -06:00
commit 5a6e0f6f48

View file

@ -82,7 +82,10 @@ class ProxyPlugins:
self.plugin_list.remove(p)
log.debug("Removing {} plugin".format(p.name))
for mthd,pmthd in self.mthdDict.iteritems():
self.plugin_mthds[mthd].remove(p)
try:
self.plugin_mthds[mthd].remove(getattr(p,pmthd))
except KeyError:
pass #nothing to remove
def hook(self):
'''Magic to hook various function calls in sslstrip'''