Skip to content

Commit 2099a9d

Browse files
authored
server : Support listening on a unix socket (#12613)
* server : Bump cpp-httplib to include AF_UNIX windows support Signed-off-by: Piotr Stankiewicz <[email protected]> * server : Allow running the server example on a unix socket Signed-off-by: Piotr Stankiewicz <[email protected]> --------- Signed-off-by: Piotr Stankiewicz <[email protected]>
1 parent 2969019 commit 2099a9d

File tree

3 files changed

+330
-255
lines changed

3 files changed

+330
-255
lines changed

common/arg.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1979,7 +1979,7 @@ common_params_context common_params_parser_init(common_params & params, llama_ex
19791979
).set_examples({LLAMA_EXAMPLE_EMBEDDING}));
19801980
add_opt(common_arg(
19811981
{"--host"}, "HOST",
1982-
string_format("ip address to listen (default: %s)", params.hostname.c_str()),
1982+
string_format("ip address to listen, or bind to an UNIX socket if the address ends with .sock (default: %s)", params.hostname.c_str()),
19831983
[](common_params & params, const std::string & value) {
19841984
params.hostname = value;
19851985
}

0 commit comments

Comments
 (0)