mirror of https://github.com/schollz/croc.git
check if chrooted before using local relay
This commit is contained in:
parent
c70327ff82
commit
42b9a00102
|
@ -22,6 +22,7 @@ import (
|
||||||
homedir "github.com/mitchellh/go-homedir"
|
homedir "github.com/mitchellh/go-homedir"
|
||||||
"github.com/schollz/croc/keypair"
|
"github.com/schollz/croc/keypair"
|
||||||
"github.com/schollz/croc/randomstring"
|
"github.com/schollz/croc/randomstring"
|
||||||
|
"github.com/schollz/ischrooted"
|
||||||
"github.com/schollz/peerdiscovery"
|
"github.com/schollz/peerdiscovery"
|
||||||
"github.com/schollz/progressbar"
|
"github.com/schollz/progressbar"
|
||||||
tarinator "github.com/schollz/tarinator-go"
|
tarinator "github.com/schollz/tarinator-go"
|
||||||
|
@ -246,7 +247,7 @@ func (c *Connection) Run() error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if c.Server != "localhost" {
|
if c.Server != "localhost" && !ischrooted.IsChrooted() {
|
||||||
// broadcast local connection from sender
|
// broadcast local connection from sender
|
||||||
log.Debug("settings payload to ", c.Code)
|
log.Debug("settings payload to ", c.Code)
|
||||||
go func() {
|
go func() {
|
||||||
|
|
Loading…
Reference in New Issue