be more clear about proxy usage, allow flags in interactive

This commit is contained in:
olebeck 2022-12-24 10:56:46 +01:00
parent c764885f26
commit d0ecf1c261
2 changed files with 5 additions and 2 deletions

View File

@ -8,6 +8,7 @@ import (
"os"
"os/signal"
"runtime/debug"
"strings"
"syscall"
"github.com/bedrock-tool/bedrocktool/utils"
@ -54,7 +55,7 @@ func main() {
logrus.Error(err)
}
if newVersion != "" {
if newVersion != "" && utils.Version != "" {
logrus.Infof("Update Available: %s", newVersion)
}
@ -86,7 +87,8 @@ func main() {
if cancelled {
return
}
os.Args = append(os.Args, cmd)
_cmd := strings.Split(cmd, " ")
os.Args = append(os.Args, _cmd...)
utils.G_interactive = true
}
}

View File

@ -192,6 +192,7 @@ func (p *ProxyContext) Run(ctx context.Context, server_address string) (err erro
defer p.Listener.Close()
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
c, err = p.Listener.Accept()