diff options
Diffstat (limited to 'src/services')
-rwxr-xr-x | src/services/vyos-configd | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/services/vyos-configd b/src/services/vyos-configd index 671a89036..5b1ab1f1f 100755 --- a/src/services/vyos-configd +++ b/src/services/vyos-configd @@ -136,7 +136,7 @@ def initialization(socket): session_string = '' # check first for resent init msg, in case of client timeout while True: - msg = socket.recv().decode() + msg = socket.recv().decode("utf-8", "ignore") try: message = json.loads(msg) if message["type"] == "init": @@ -149,10 +149,10 @@ def initialization(socket): active_string = msg resp = "active" socket.send(resp.encode()) - session_string = socket.recv().decode() + session_string = socket.recv().decode("utf-8", "ignore") resp = "session" socket.send(resp.encode()) - pid_string = socket.recv().decode() + pid_string = socket.recv().decode("utf-8", "ignore") resp = "pid" socket.send(resp.encode()) |