mirror of
https://github.com/chatmail/relay.git
synced 2026-05-10 16:04:37 +00:00
turnserver: Strip newline from response.
This commit is contained in:
@@ -6,4 +6,4 @@ def turn_credentials() -> str:
|
|||||||
with socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) as client_socket:
|
with socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) as client_socket:
|
||||||
client_socket.connect("/run/chatmail-turn/turn.socket")
|
client_socket.connect("/run/chatmail-turn/turn.socket")
|
||||||
with client_socket.makefile("rb") as file:
|
with client_socket.makefile("rb") as file:
|
||||||
return file.readline().decode("utf-8")
|
return file.readline().decode("utf-8").strip()
|
||||||
|
|||||||
Reference in New Issue
Block a user