Beremiz_service.py
changeset 208 dd630979f628
parent 207 5f4cb3b024cc
child 210 ca3bfcf61192
equal deleted inserted replaced
207:5f4cb3b024cc 208:dd630979f628
    99 print "The object's uri is :",uri
    99 print "The object's uri is :",uri
   100 print "The working directory :",WorkingDir
   100 print "The working directory :",WorkingDir
   101 
   101 
   102 # Configure and publish service
   102 # Configure and publish service
   103 # Not publish service if localhost in address params
   103 # Not publish service if localhost in address params
   104 print ip
       
   105 if ip != "localhost" and ip != "127.0.0.1":    
   104 if ip != "localhost" and ip != "127.0.0.1":    
   106     # No ip params -> get host ip
   105     # No ip params -> get host ip
   107     if ip == "":
   106     if ip == "":
   108         ip_32b = socket.inet_aton(gethostaddr(ip))
   107         ip_32b = socket.inet_aton(gethostaddr(ip))
   109     else:
   108     else: