socket.getfqdn() not working correctly under alpine

This commit is contained in:
Marvin Martinson 2021-06-28 13:07:12 +00:00
parent 591802b01e
commit 5d3a59354e

View File

@ -7,7 +7,8 @@ import ipaddress
import pymongo import pymongo
from motor.motor_asyncio import AsyncIOMotorClient from motor.motor_asyncio import AsyncIOMotorClient
FQDN = socket.getfqdn() #For some reason socket.getfqdn() under alpine giving IP, getfqdn working fine under ubuntu
FQDN = socket.gethostname()
DEBUG = os.getenv("DEBUG") DEBUG = os.getenv("DEBUG")
DISABLE_MASQUERADE = os.getenv("DISABLE_MASQUERADE") DISABLE_MASQUERADE = os.getenv("DISABLE_MASQUERADE")
MONGO_URI = os.getenv("MONGO_URI") MONGO_URI = os.getenv("MONGO_URI")