be more clear about proxy usage, allow flags in interactive
This commit is contained in:
parent
c764885f26
commit
d0ecf1c261
|
@ -8,6 +8,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"os/signal"
|
"os/signal"
|
||||||
"runtime/debug"
|
"runtime/debug"
|
||||||
|
"strings"
|
||||||
"syscall"
|
"syscall"
|
||||||
|
|
||||||
"github.com/bedrock-tool/bedrocktool/utils"
|
"github.com/bedrock-tool/bedrocktool/utils"
|
||||||
|
@ -54,7 +55,7 @@ func main() {
|
||||||
logrus.Error(err)
|
logrus.Error(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if newVersion != "" {
|
if newVersion != "" && utils.Version != "" {
|
||||||
logrus.Infof("Update Available: %s", newVersion)
|
logrus.Infof("Update Available: %s", newVersion)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -86,7 +87,8 @@ func main() {
|
||||||
if cancelled {
|
if cancelled {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
os.Args = append(os.Args, cmd)
|
_cmd := strings.Split(cmd, " ")
|
||||||
|
os.Args = append(os.Args, _cmd...)
|
||||||
utils.G_interactive = true
|
utils.G_interactive = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -192,6 +192,7 @@ func (p *ProxyContext) Run(ctx context.Context, server_address string) (err erro
|
||||||
defer p.Listener.Close()
|
defer p.Listener.Close()
|
||||||
|
|
||||||
p.log.Infof("Listening on %s", p.Listener.Addr())
|
p.log.Infof("Listening on %s", p.Listener.Addr())
|
||||||
|
p.log.Infof("Open Minecraft and connect to this computers local ip address to continue")
|
||||||
|
|
||||||
var c net.Conn
|
var c net.Conn
|
||||||
c, err = p.Listener.Accept()
|
c, err = p.Listener.Accept()
|
||||||
|
|
Loading…
Reference in New Issue