From 1c831d022ae2c4fc4ecdf971281361773b161182 Mon Sep 17 00:00:00 2001 From: CodePanter Date: Tue, 22 Nov 2016 22:34:57 +0100 Subject: [PATCH] The IP and/or Port specified from the commandline will also be broadcasted to the clients. --- vloed.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vloed.py b/vloed.py index 405e9a7..2b04a7f 100755 --- a/vloed.py +++ b/vloed.py @@ -36,8 +36,8 @@ class Canvas(object): self.pixeloffset = 2 self.fps = 30 self.screen = None - self.udp_ip = UDP_IP - self.udp_port = UDP_PORT + self.udp_ip = options.ip if options.ip else UDP_IP + self.udp_port = options.port if options.port else UDP_PORT self.factor = options.factor if options.factor else 1 self.width = options.width if options.width else DEFAULT_WIDTH self.height = options.height if options.height else DEFAULT_HEIGHT