--- a/Beremiz_service.py Thu Aug 17 16:26:32 2017 +0300
+++ b/Beremiz_service.py Thu Aug 17 17:25:17 2017 +0300
@@ -441,10 +441,10 @@
# Configure and publish service
# Not publish service if localhost in address params
- if (self.servicename is not None and
- self.ip_addr is not None and
- self.ip_addr != "localhost" and
- self.ip_addr != "127.0.0.1"):
+ if self.servicename is not None and \
+ self.ip_addr is not None and \
+ self.ip_addr != "localhost" and \
+ self.ip_addr != "127.0.0.1":
print _("Publishing service on local network")
self.servicepublisher = ServicePublisher.ServicePublisher()
self.servicepublisher.RegisterService(self.servicename, self.ip_addr, self.port)