ogClient: open event socket in live mode

Listen for event datagrams at UDP port 55885 in live mode too. The same
as when running Linux or Windows mode.
more_events
Jose M. Guisado 2023-09-13 10:51:15 +02:00
parent 457a912749
commit 1e92aa4262
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ class ogClient:
if self.mode not in {'virtual', 'live', 'linux', 'windows'}: if self.mode not in {'virtual', 'live', 'linux', 'windows'}:
logging.critical('Invalid ogClient mode') logging.critical('Invalid ogClient mode')
raise ValueError('Mode not supported.') raise ValueError('Mode not supported.')
if self.mode in {'linux', 'windows'}: if self.mode in {'linux', 'windows', 'live'}:
self.event_sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) self.event_sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
self.event_sock.setblocking(0) self.event_sock.setblocking(0)
self.event_sock.bind(('127.0.0.1', 55885)) self.event_sock.bind(('127.0.0.1', 55885))