From 42b9a00102a4a66d1a2db94e78ef05f6f4b54948 Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Mon, 25 Jun 2018 07:37:52 -0700 Subject: [PATCH] check if chrooted before using local relay --- connect.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/connect.go b/connect.go index c2163670..cee9339c 100644 --- a/connect.go +++ b/connect.go @@ -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() {