Browse Source

unset the registerhostname config field if the netloc is unknown

Natenom/support-murmur-13-1446181288462
Michael Ziegler 15 years ago
parent
commit
6942907e26
  1. 2
      pyweb/mumble/models.py

2
pyweb/mumble/models.py

@ -191,6 +191,8 @@ class Mumble( models.Model ):
if self.netloc:
self.ctl.setConf( self.srvid, 'registerhostname', self.netloc );
else:
self.ctl.setConf( self.srvid, 'registerhostname', '' );
# Now allow django to save the record set
return models.Model.save( self );

Loading…
Cancel
Save