Skip to content

Commit 24e981e

Browse files
committed
feat: allow custom ip for cemuhook server
1 parent 7940e0d commit 24e981e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scc/cemuhook_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def on_data_received(self, fd, event_type):
7272
if fd != self.socket.fileno(): return
7373
message, (ip, port) = self.socket.recvfrom(BUFFER_SIZE)
7474
buffer = create_string_buffer(BUFFER_SIZE)
75-
self._lib.cemuhook_data_received(fd, ip, port, message, len(message), buffer)
75+
self._lib.cemuhook_data_received(fd, ip.encode('utf-8'), port, message, len(message), buffer)
7676

7777

7878
def feed(self, data):

0 commit comments

Comments
 (0)