From a481a8b3221b3fc6bccef69420da3be6a44ad5d8 Mon Sep 17 00:00:00 2001 From: zhengkunwang223 <31820853+zhengkunwang223@users.noreply.github.com> Date: Thu, 6 Apr 2023 17:16:16 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=9B=E5=BB=BA=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E6=94=BE=E5=BC=80=E7=9B=B8=E5=BA=94=E7=AB=AF=E5=8F=A3=20(#520)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/service/app.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/app/service/app.go b/backend/app/service/app.go index e8e5e63eb..14b1b3efc 100644 --- a/backend/app/service/app.go +++ b/backend/app/service/app.go @@ -318,6 +318,11 @@ func (a AppService) Install(ctx context.Context, req request.AppInstallCreate) ( } go upApp(ctx, appInstall.GetComposePath(), appInstall) go updateToolApp(appInstall) + ports := []int{appInstall.HttpPort} + if appInstall.HttpsPort > 0 { + ports = append(ports, appInstall.HttpsPort) + } + go OperateFirewallPort(nil, ports) return &appInstall, nil }