Fixed only one rdesktop under multiple clients

This commit is contained in:
nop 2020-10-09 08:43:47 +08:00 committed by GitHub
parent ffaac628c3
commit f2b080493f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -450,7 +450,8 @@ class PupyModule(object):
if not self.client.pupsrv.start_webserver(): if not self.client.pupsrv.start_webserver():
return None return None
else: else:
return self.client.pupsrv.pupweb.start_webplugin('rdesktop', self.web_handlers) plugin_name = 'rdesktop_%s' % self.client.id
return self.client.pupsrv.pupweb.start_webplugin(plugin_name, self.web_handlers)
@classmethod @classmethod
def is_compatible_with(cls, client): def is_compatible_with(cls, client):