mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-23 06:37:15 +00:00
pystemon-feeder: add the option bind in configuration file instead of address
This is essentially because multiple feeds can be used in the address configuration variable.
This commit is contained in:
parent
9f9c265cb0
commit
16044d4d36
2 changed files with 6 additions and 1 deletions
|
@ -36,7 +36,11 @@ if not os.path.exists(configfile):
|
|||
cfg = ConfigParser.ConfigParser()
|
||||
cfg.read(configfile)
|
||||
|
||||
zmq_url = cfg.get("ZMQ_Global", "address")
|
||||
if cfg.has_option("ZMQ_Global", "bind"):
|
||||
zmq_url = cfg.get("ZMQ_Global", "bind")
|
||||
else:
|
||||
zmq_url = "tcp://127.0.0.1:5556"
|
||||
|
||||
pystemonpath = cfg.get("Directories", "pystemonpath")
|
||||
|
||||
context = zmq.Context()
|
||||
|
|
|
@ -132,6 +132,7 @@ path = indexdir
|
|||
#address = tcp://crf.circl.lu:5556
|
||||
address = tcp://127.0.0.1:5556
|
||||
channel = 102
|
||||
bind = tcp://127.0.0.1:5556
|
||||
|
||||
[ZMQ_Url]
|
||||
address = tcp://127.0.0.1:5004
|
||||
|
|
Loading…
Reference in a new issue