mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 13:21:00 +02:00
check if chrooted before using local relay
This commit is contained in:
parent
c70327ff82
commit
42b9a00102
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue