Fix relay
Save log to /var/log when in linux
Disable automatic permit-join