]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
bos #18347 Fail to connect to omniNames with endPoint activated
authorAnthony Geay <anthony.geay@edf.fr>
Wed, 6 Nov 2019 07:21:01 +0000 (08:21 +0100)
committervsr <vsr@opencascade.com>
Tue, 28 Jan 2020 10:48:37 +0000 (13:48 +0300)
- rollback changes introduced by commit c8faacd4

bin/ORBConfigFile.py
bin/nameserver.py

index ba512034a63dcb5c2801f0a9f125517d45af0772..979a3177e0d6000c3dbbe5972a2c43672ad92c51 100755 (executable)
@@ -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:
index ed5664ec4180e2f246cd10c581fe4f0cdc7d9acd..34c23b017e4d129ad4ded05d11b314590f61ebc9 100644 (file)
@@ -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 ")