Update of /cvsroot/openrpg/openrpg1/plugins
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv448/plugins
Modified Files:
Tag: BRANCH-1-7-1
xxcherrypy.py
Log Message:
Fixed a bug that caused Cherrypy to not work on some *nix systems
Index: xxcherrypy.py
===================================================================
RCS file: /cvsroot/openrpg/openrpg1/plugins/xxcherrypy.py,v
retrieving revision 1.9
retrieving revision 1.9.2.1
diff -C2 -d -r1.9 -r1.9.2.1
*** xxcherrypy.py 15 Nov 2006 12:11:26 -0000 1.9
--- xxcherrypy.py 18 Apr 2007 23:50:57 -0000 1.9.2.1
***************
*** 27,31 ****
def plugin_enabled(self):
self.plugin_addcommand('/cherrypy', self.on_cherrypy, '[on | off | status] - This controls the CherryPy Web Server')
! tmp = socket.gethostbyname_ex('')
for ip in tmp[2]:
self.host = ip
--- 27,31 ----
def plugin_enabled(self):
self.plugin_addcommand('/cherrypy', self.on_cherrypy, '[on | off | status] - This controls the CherryPy Web Server')
! tmp = socket.gethostbyname_ex(socket.gethostname())
for ip in tmp[2]:
self.host = ip
|