From 279e2af21e09ea2674acb568c263b9fbc6d41500 Mon Sep 17 00:00:00 2001 From: zhifengle Date: Fri, 21 Apr 2023 09:34:28 +0800 Subject: [PATCH] update: set proxy on install --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index c2ced49..e880f10 100644 --- a/main.go +++ b/main.go @@ -127,6 +127,9 @@ func commands() []cli.Command { ShortName: "i", Usage: "Install available remote jdk", Action: func(c *cli.Context) error { + if config.Proxy != "" { + web.SetProxy(config.Proxy) + } v := c.Args().Get(0) if v == "" { return errors.New("invalid version., Type \"jvms rls\" to see what is available for install")