Browse Source

set registerhostname to plain display/bind address instead of addr:port. fixes #150

Natenom/support-murmur-13-1446181288462
Michael Ziegler 14 years ago
parent
commit
b5f47053f4
  1. 8
      pyweb/mumble/models.py

8
pyweb/mumble/models.py

@ -279,8 +279,12 @@ class Mumble( models.Model ):
else:
self.ctl.setConf( self.srvid, 'port', '' )
if self.netloc:
self.ctl.setConf( self.srvid, 'registerhostname', self.netloc )
if self.display:
# if self.display contains a port, we're screwed here...
self.ctl.setConf( self.srvid, 'registerhostname', self.display )
elif self.addr:
# If Murmur binds to multiple addresses, use the first
self.ctl.setConf( self.srvid, 'registerhostname', self.addr.split(" ")[0] )
else:
self.ctl.setConf( self.srvid, 'registerhostname', '' )

Loading…
Cancel
Save