Commit 9930bb13 authored by Ulysse Beaugnon's avatar Ulysse Beaugnon

Solving a bug a the reception of a message advertising a peer

parent 150b92a3
......@@ -171,7 +171,7 @@ class PeerManager:
% msg)
def readSocket(self, msg):
peer = msg.split(' ')
peer = msg.replace('\n', '').split(' ').replace('\n', '')
if len(peer) != 2:
logging.debug('Invalid package recieved : %s' % msg)
return
......
......@@ -71,7 +71,7 @@ def router(network, subnet, subnet_size, interface_list,
'-C', 'redistribute ip %s/%s le %s' % (subnet, subnet_size, subnet_size),
'-C', 'redistribute deny',
# Route VIFIB ip adresses
'-C', 'in ip %s::/%u' % (utils.ipFromBin(network), len(network)),
'-C', 'in ip %s::/%u le 127' % (utils.ipFromBin(network), len(network)),
# Route only addresse in the 'local' network,
# or other entire networks
#'-C', 'in ip %s' % (config.internal_ip),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment