Skip to content

Commit

Permalink
Allow requesting layman from other docker containers
Browse files Browse the repository at this point in the history
Fix #38
  • Loading branch information
jirik committed Dec 26, 2019
1 parent 95fb2da commit aa2ae9f
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/layman/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,6 @@
app.secret_key = os.environ['FLASK_SECRET_KEY']


def _is_ip_address(maybe_ip):
import socket
try:
socket.inet_aton(maybe_ip)
return True
except socket.error:
return False


if "." in settings.LAYMAN_PROXY_SERVER_NAME and not _is_ip_address(settings.LAYMAN_PROXY_SERVER_NAME):
app.config['SERVER_NAME'] = settings.LAYMAN_PROXY_SERVER_NAME


from .http import LaymanError
from .make_celery import make_celery
celery_app = make_celery(app)
Expand Down

0 comments on commit aa2ae9f

Please sign in to comment.