From 37cd247a9aa36d504a9ae124fa245414fcddeba8 Mon Sep 17 00:00:00 2001 From: bios000 <3540970872@qq.com> Date: Wed, 19 Oct 2022 01:03:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=B5=8B=E8=AF=95bug?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yml | 2 +- modules/message/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 7550568..f0718e8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -32,7 +32,7 @@ services: - "21:21" - "80:80" - "2345:2345" - - "2333:53/udp" + - "53:53/udp" - "443:443" environment: # 平台数据库配置,与上mysql配置保持一致 diff --git a/modules/message/views.py b/modules/message/views.py index 33b5595..9f6f825 100644 --- a/modules/message/views.py +++ b/modules/message/views.py @@ -205,7 +205,7 @@ def index(request): headers = dict((regex.sub('', header), value) for (header, value) in request.META.items() if header.startswith('HTTP_')) # 利用组件返回response - if host == PLATFORM_DOMAIN and path == os.environ.get('LOGIN_PATH'): + if path == os.environ.get('LOGIN_PATH'): return render(request, '../static/index.html') elif len(path) == 4: task_config_item = TaskConfigItem.objects.filter(task_config__key=path,