From abc8785a6a3a8a06d38c87e779deda1bb310666b Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Wed, 6 Nov 2019 08:21:01 +0100 Subject: [PATCH] bos #18347 Fail to connect to omniNames with endPoint activated - rollback changes introduced by commit c8faacd4 --- bin/ORBConfigFile.py | 6 ------ bin/nameserver.py | 1 - 2 files changed, 7 deletions(-) diff --git a/bin/ORBConfigFile.py b/bin/ORBConfigFile.py index ba512034a..979a3177e 100755 --- a/bin/ORBConfigFile.py +++ b/bin/ORBConfigFile.py @@ -66,12 +66,6 @@ def writeORBConfigFile(path, host, port, kwargs={}): orbdata.append("%smaxGIOPConnectionPerServer = 500 # to allow containers parallel launch"%(prefix)) orbdata.append("%snativeCharCodeSet = UTF-8"%(prefix)) - 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("") with open(omniorb_config, "w") as f: diff --git a/bin/nameserver.py b/bin/nameserver.py index ed5664ec4..34c23b017 100644 --- a/bin/nameserver.py +++ b/bin/nameserver.py @@ -97,7 +97,6 @@ class NamingServer(Server): ipDefault = ip.split()[-1].decode() self.CMD = ['omniNames','-start' , aPort] self.CMD += ['-logdir' , upath, '-errlog', upath+'/omniNameErrors.log'] - 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