Skip to content

Commit

Permalink
Set default for HOST_NAME to localhost
Browse files Browse the repository at this point in the history
So far, the host name was obtained via `socket.getfqdn()` but this
resulted in a strange host name (with very many zeros) and problems on
macOs (always macOS).
  • Loading branch information
Hannah Bast committed Aug 31, 2024
1 parent db78d63 commit 50c684a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "qlever"
description = "Script for using the QLever SPARQL engine."
version = "0.5.2"
version = "0.5.6"
authors = [
{ name = "Hannah Bast", email = "[email protected]" }
]
Expand Down
2 changes: 1 addition & 1 deletion src/qlever/qleverfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def arg(*args, **kwargs):
help="The binary for starting the server (this requires "
"that you have compiled QLever on your machine)")
server_args["host_name"] = arg(
"--host-name", type=str, default=f"{socket.getfqdn()}",
"--host-name", type=str, default=f"localhost",
help="The name of the host on which the server listens for "
"requests")
server_args["port"] = arg(
Expand Down

0 comments on commit 50c684a

Please sign in to comment.