1
0
mirror of https://github.com/schollz/croc.git synced 2024-11-24 08:02:33 +03:00

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

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() {