Closed Kasea closed 5 years ago
it seems like everytime I print the packet it works, so __repr__
. Surely enough calling repr on the object makes it work.
I believe it's most likely to setting the payload wrong and this line in repr fixes it
if k == "payload" and v and len(v) > 20:
v = v[:20] + b"..."
Not sure what happened, I got it working, proceeded to restart the project a few times to play around with somethings and the next thing I knew whenever it would receive a packet and resend it, it would crash the entire program.
Python: 3.6.8 64 bit Windows 10 64 bit
Traceback:
This is a snippet of how the code looks at
Networking\divert\network.py", line 58, in start