From a98cc9f8d67fa4a29343864aefa14feaccf36ac1 Mon Sep 17 00:00:00 2001 From: Si-Huan <49349784+Si-Huan@users.noreply.github.com> Date: Mon, 2 Mar 2020 21:58:51 +0800 Subject: [PATCH] ns up up up up --- worker/ns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker/ns.py b/worker/ns.py index ca1f439..1aed0f6 100644 --- a/worker/ns.py +++ b/worker/ns.py @@ -5,5 +5,5 @@ class Ans(StdAns): def GETMSG(self): domain = self.raw_msg['message'][4:] r = run(["nslookup",domain],capture_output=True) - msg = r.stdout + msg = bytes.decode(r.stdout) return msg