turnserver: Strip newline from response.

This commit is contained in:
Lars-Dominik Braun
2025-11-01 16:54:04 +01:00
committed by l
parent dd3cf4d449
commit d42f579291

View File

@@ -6,4 +6,4 @@ def turn_credentials() -> str:
with socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) as client_socket:
client_socket.connect("/run/chatmail-turn/turn.socket")
with client_socket.makefile("rb") as file:
return file.readline().decode("utf-8")
return file.readline().decode("utf-8").strip()