Skip to content

Commit

Permalink
feat: add clash udp cfg close Ehco1996#470
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehco1996 committed Feb 28, 2021
1 parent 49736c1 commit 2d3b2d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ FROM python:3.8-alpine as base

LABEL Name=django-sspanel

ENV CRYPTOGRAPHY_DONT_BUILD_RUST=1

COPY requirements.txt /tmp/requirements.txt

RUN apk add --update --no-cache mariadb-connector-c-dev tzdata \
Expand Down
1 change: 1 addition & 0 deletions apps/proxy/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ def get_user_clash_config(self, user, relay_rule=None):
"port": port,
"cipher": self.ss_config.method,
"password": user.ss_password,
"udp": True,
}
return json.dumps(config, ensure_ascii=False)

Expand Down

0 comments on commit 2d3b2d6

Please sign in to comment.