if peer.name in S.list():
S.kill(peer.name)
try:
+ booltrue = ['t', 'true', 'y', 'yes', 'on']
S.add(peer.name,
tunnel = peer.get('tunnel', None),
keepalive = peer.get('keepalive', None),
- cork = peer.get('cork', 'nil') in ['t', 'true', 'y', 'yes', 'on'],
+ key = peer.get('key', None),
+ mobile = peer.get('mobile', 'nil') in booltrue,
+ cork = peer.get('cork', 'nil') in booltrue,
*addr)
except T.TripeError, exc:
raise T.TripeJobError(*exc.args)