Skip to content

Commit e1e27e7

Browse files
authored
feat(server): support host all to use dual stack netstat (#1273)
1 parent 94468d4 commit e1e27e7

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

openviking/server/bootstrap.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,15 @@ def _get_version() -> str:
3333
return "unknown"
3434

3535

36+
def _normalize_host_arg(host: Optional[str]) -> Optional[str]:
37+
"""Normalize special CLI host values."""
38+
if host is None:
39+
return None
40+
if host.strip().lower() == "all":
41+
return None
42+
return host
43+
44+
3645
def main():
3746
"""Main entry point for openviking-server command."""
3847
parser = argparse.ArgumentParser(
@@ -124,7 +133,7 @@ def main():
124133

125134
# Override with command line arguments
126135
if args.host is not None:
127-
config.host = args.host
136+
config.host = _normalize_host_arg(args.host)
128137
if args.port is not None:
129138
config.port = args.port
130139
if args.workers is not None:

0 commit comments

Comments
 (0)