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:
parent
c70327ff82
commit
42b9a00102
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user