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,