Get chat to work again

This commit is contained in:
Marco Pesenti Gritti
2006-07-26 14:05:43 +02:00
parent 5f628f1a4f
commit fd6367007a
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -589,6 +589,8 @@ class PresenceService(object):
# Use random currently unassigned multicast address
address = u"232.%d.%d.%d" % (random.randint(0, 254), random.randint(1, 254),
random.randint(1, 254))
properties['address'] = address
properties['port'] = port
if port and port != -1 and (type(port) != type(1) or port <= 1024 or port >= 65535):
raise ValueError("port must be a number between 1024 and 65535")