def build_url(address, port, slug=False):
    """
    Build url from address, port and optional slug.
    """
    if slug:
        return "http://{}:{}/{}".format(address, port, slug)
    else:
        return "http://{}:{}/".format(address, port)