From 958dbb74c6280f474ed3cfdfbee9d12ed19ef707 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Wed, 6 Nov 2019 08:21:01 +0100 Subject: [PATCH] fail to connect to omniNames with endPoint activated --- bin/ORBConfigFile.py | 4 ++-- bin/nameserver.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/ORBConfigFile.py b/bin/ORBConfigFile.py index ba512034a..9455013c9 100755 --- a/bin/ORBConfigFile.py +++ b/bin/ORBConfigFile.py @@ -69,8 +69,8 @@ def writeORBConfigFile(path, host, port, kwargs={}): import socket # get ip address on default interface (for instance eth0) to limit listening on this interface (cyber security request) ipDefault = socket.gethostbyname(socket.gethostname()) - orbdata.append("%sendPoint = giop:tcp:127.0.0.1:%s"%(prefix,'')) - orbdata.append("%sendPoint = giop:tcp:%s:%s"%(prefix, ipDefault,'')) + #orbdata.append("%sendPoint = giop:tcp:127.0.0.1:%s"%(prefix,'')) + #orbdata.append("%sendPoint = giop:tcp:%s:%s"%(prefix, ipDefault,'')) orbdata.append("") diff --git a/bin/nameserver.py b/bin/nameserver.py index 257969892..bfe97a001 100644 --- a/bin/nameserver.py +++ b/bin/nameserver.py @@ -93,7 +93,7 @@ class NamingServer(Server): ipDefault = ips.split()[0].decode() self.CMD = ['omniNames','-start' , aPort] self.CMD += ['-logdir' , upath, '-errlog', upath+'/omniNameErrors.log'] - self.CMD += ['-ORBendPoint', 'giop:tcp:%s:%s'%(hname,aPort)] + #self.CMD += ['-ORBendPoint', 'giop:tcp:%s:%s'%(hname,aPort)] if verbose(): print("... ok") if verbose(): print("to list contexts and objects bound into the context with the specified name : showNS ") -- 2.39.2