From: Xuan-Son Nguyen Date: Mon, 3 Aug 2026 10:45:24 +0000 (+0200) Subject: server: add notice for upcoming default port change 8080 --> 9931 (#26508) X-Git-Tag: upstream/0.0.10438~198 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=0b14b87d7c20cb753b94b96854dd7b45306fc696;p=pkg%2Fggml%2Fsources%2Fllama.cpp server: add notice for upcoming default port change 8080 --> 9931 (#26508) * server: add notice for upcoming default port change 8080 --> 6631 * add link to PR * correct to 9931 --- diff --git a/tools/server/server.cpp b/tools/server/server.cpp index a3b2a8b0f..aafb1f307 100644 --- a/tools/server/server.cpp +++ b/tools/server/server.cpp @@ -486,6 +486,13 @@ int llama_server(common_params & params, int argc, char ** argv) { SRV_INF("listening on %s\n", ctx_http.listening_address.c_str()); + // TODO: remove this in the future + // check the string to also handle the .sock case + if (string_ends_with(ctx_http.listening_address, ":8080")) { + SRV_WRN("%s", "NOTICE: server default port will be changed to :9931 in a future release\n"); + SRV_WRN("%s", " ref: https://github.com/ggml-org/llama.cpp/pull/26508\n"); + } + if (is_router_server) { if (!params.models_preset_hf.empty()) { SRV_WRN( "NOTE: using preset.ini from HF repo '%s'\n", params.models_preset_hf.c_str());