From cabdc3ad426577378d70f7bb07c963228087a153 Mon Sep 17 00:00:00 2001 From: Bai Date: Wed, 24 May 2023 17:30:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=BB=88=E7=AB=AF?= =?UTF-8?q?=E7=AB=AF=E7=82=B9=E4=BD=BF=E7=94=A8=E8=B5=84=E4=BA=A7=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E5=8C=B9=E9=85=8D=E6=9C=BA=E5=88=B6=E6=97=B6=20500=20?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/terminal/models/component/endpoint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/terminal/models/component/endpoint.py b/apps/terminal/models/component/endpoint.py index 8699eb898..c5aab12d9 100644 --- a/apps/terminal/models/component/endpoint.py +++ b/apps/terminal/models/component/endpoint.py @@ -82,7 +82,7 @@ class Endpoint(JMSBaseModel): return None endpoints = cls.objects.filter(name__in=values).order_by('-date_updated') for endpoint in endpoints: - if endpoint.is_valid_for(protocol): + if endpoint.is_valid_for(instance, protocol): return endpoint