From 46a83ab85f4d588ea7490c6e4449f98246eeb9f2 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 7 Sep 2005 11:06:48 +0000 Subject: mirror list support for http method --- mdk-stage1/network.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'mdk-stage1/network.c') diff --git a/mdk-stage1/network.c b/mdk-stage1/network.c index cbc90126b..2b4ce30fd 100644 --- a/mdk-stage1/network.c +++ b/mdk-stage1/network.c @@ -1161,6 +1161,16 @@ enum return_type http_prepare(void) int fd, size; int use_http_proxy; + if (!IS_AUTOMATIC) { + if (answers == NULL) + answers = (char **) malloc(sizeof(questions)); + + results = choose_mirror_from_list(http_proxy_host, http_proxy_port, "http", &answers[0], &answers[1]); + + if (results == RETURN_BACK) + return ftp_prepare(); + } + results = ask_from_entries_auto("Please enter the name or IP address of the HTTP server, " "and the directory containing the " DISTRIB_NAME " Distribution.", questions, &answers, 40, questions_auto, NULL); -- cgit v1.2.1