The IP and/or Port specified from the commandline will also be broadcasted to the clients.

This commit is contained in:
CodePanter 2016-11-22 22:34:57 +01:00
parent 34d7cad6cd
commit 1c831d022a

View file

@ -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