Skip to content

Commit

Permalink
v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
xxxxbxxxxx committed Apr 23, 2020
1 parent 074795b commit 768d0f5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions vulfocus-api/vulfocus/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,11 @@
client = docker.DockerClient(base_url='unix://var/run/docker.sock')
# 靶场绑定 IP,提供用户访问靶场与 Docker 服务IP保持一致。
VUL_IP = ""
if os.environ['VUL_IP']:
VUL_IP = os.environ['VUL_IP']
try:
if os.environ['VUL_IP']:
VUL_IP = os.environ['VUL_IP']
except Exception as e:
pass
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/2.2/howto/static-files/

Expand Down

0 comments on commit 768d0f5

Please sign in to comment.