reply, proxy, create floder, bug fix...

This commit is contained in:
2020-04-01 21:52:22 +08:00
parent 70f6a177d4
commit 60c9bbc4af
6 changed files with 59 additions and 26 deletions

View File

@@ -93,8 +93,9 @@ class Datapack:
ndp = copy.copy(self)
ndp.app = ndp.head['from']
ndp.method = 'reply'
ndp.head['to'] = self.head['id']
ndp.id = ID
if not self.head['id'] == ID: # net package
ndp.head['to'] = self.head['id']
ndp.head['id'] = ID
return ndp