#!/bin/sh
-. ./testlib.sh
+. "${0%/*}/testlib.sh"
# Initialize one node
set DeviceType dummy
set Mode switch
set Broadcast no
-del Port
set Address localhost
set Port 32758
EOF
# Generate an invitation offline and let another node join the VPN
-invitation=`$tinc $c1 invite bar`
+invitation=`$tinc $c1 invite bar | tr -d '\r'`
$tinc $c1 start $r1