From 2c8f1fdf993889cf2086099a7978b26d432ffa95 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Mon, 23 Mar 2020 01:25:27 -0500 Subject: [PATCH] restore unicoding in multicast ad --- src/lan/discover.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lan/discover.py b/src/lan/discover.py index c53b71ae..71f74a1d 100644 --- a/src/lan/discover.py +++ b/src/lan/discover.py @@ -82,6 +82,6 @@ def advertise_service(specific_ips=None): sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP) sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, MULTICAST_TTL) while True: - sock.sendto(f"onionr-{ips}", (MCAST_GRP, MCAST_PORT)) + sock.sendto(f"onionr-{ips}".encode('utf-8'), (MCAST_GRP, MCAST_PORT)) better_sleep(ANNOUNCE_LOOP_SLEEP)