server: use port 9931 by default (#30159)

* server: use port 9931 by default

* revert unrelated changes
This commit is contained in:
Xuan-Son Nguyen authored and GitHub committed 2026-10-09 10:40:03 +02:00
1 parent b013e56a71
commit b42b7e6d30
40 files changed
+68 -66

No files matched your search

-8
View File
@@ -521,16 +521,8 @@ int llama_server(common_params & params, int argc, char ** argv, server_child &
#endif
}
bool uses_default_port = false;
for (const auto & address : ctx_http.listening_addresses) {
SRV_INF("listening on %s\n", address.c_str());
uses_default_port |= string_ends_with(address, ":8080");
}
// TODO: remove this in the future
// check the string to also handle the .sock case
if (uses_default_port) {
SRV_WRN("%s", "notice: server default port will be changed to :9931 in a future release (ref: https://github.com/ggml-org/llama.cpp/pull/26508)\n");
}
if (is_router_server) {