check if chrooted before using local relay

This commit is contained in:
Zack Scholl 2018-06-25 07:37:52 -07:00
parent c70327ff82
commit 42b9a00102
1 changed files with 2 additions and 1 deletions

View File

@ -22,6 +22,7 @@ import (
homedir "github.com/mitchellh/go-homedir"
"github.com/schollz/croc/keypair"
"github.com/schollz/croc/randomstring"
"github.com/schollz/ischrooted"
"github.com/schollz/peerdiscovery"
"github.com/schollz/progressbar"
tarinator "github.com/schollz/tarinator-go"
@ -246,7 +247,7 @@ func (c *Connection) Run() error {
return err
}
if c.Server != "localhost" {
if c.Server != "localhost" && !ischrooted.IsChrooted() {
// broadcast local connection from sender
log.Debug("settings payload to ", c.Code)
go func() {