From: Anthony Geay Date: Wed, 6 Nov 2019 07:21:01 +0000 (+0100) Subject: bos #18347 Fail to connect to omniNames with endPoint activated X-Git-Tag: EMC2P_V_1_2_0~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=abc8785a6a3a8a06d38c87e779deda1bb310666b;p=modules%2Fkernel.git bos #18347 Fail to connect to omniNames with endPoint activated - rollback changes introduced by commit c8faacd4 --- 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 ")