Skip to content

Commit

Permalink
Revert changes on server, too! ✨
Browse files Browse the repository at this point in the history
  • Loading branch information
0xSnowflakeXD committed Mar 13, 2024
1 parent bef9d50 commit 9d4bc70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tcp-server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Parsing packets according to TTELCP (TCP Toolkit Exclusively Live Communication
socket.on("data", (d) => {
// Referrence only!
try {
let data = decrypt(d.toString("utf-8"))
let data = d.toString("utf-8")
if(JSON.parse(data).uuid && JSON.parse(data).content) {
let UUIDValidateRegEx = /([a-f]|[0-9]){8}-([a-f]|[0-9]){4}-([a-f]|[0-9]){4}-([a-f]|[0-9]){8}/gm
if(UUIDValidateRegEx.test(JSON.parse(d.toString("utf-8")).uuid)) {
Expand Down

0 comments on commit 9d4bc70

Please sign in to comment.