Skip to content
This repository was archived by the owner on Apr 19, 2025. It is now read-only.

Commit eefa09c

Browse files
author
MikeDEV
committed
Finally fixed this
1 parent 2d72af5 commit eefa09c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cloudlink/supporter.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,10 +429,12 @@ def isPacketSane(self, message, keycheck=["cmd", "val"], datalimit=1000):
429429
is_sane = False
430430

431431
if "val" in tmp_msg:
432+
origin_type = type(tmp_msg["val"])
432433
if not(type(tmp_msg["val"]) in [str, dict, list]):
433434
tmp_msg["val"] = str(tmp_msg["val"])
434435
if len(tmp_msg["val"]) > datalimit:
435436
is_sane = False
437+
tmp_msg["val"] = origin_type(tmp_msg["val"])
436438

437439
if "name" in tmp_msg:
438440
if type(tmp_msg["name"]) != str:

0 commit comments

Comments
 (0)