From 1c9e14061b668928d6ea46d5c6ae97533a7a4880 Mon Sep 17 00:00:00 2001 From: murray Date: Mon, 10 Apr 2000 19:39:01 +0000 Subject: Installing via an HTTP proxy should not attempt to resolve the hostname of the FTP server; that is the proxy's job. This temporarily deletes the nameserver variable before calling mediaSetFTP. PR: 17371 Approved by: jkh --- usr.sbin/sysinstall/media.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'usr.sbin/sysinstall/media.c') diff --git a/usr.sbin/sysinstall/media.c b/usr.sbin/sysinstall/media.c index 806cb4c..9be0b5b 100644 --- a/usr.sbin/sysinstall/media.c +++ b/usr.sbin/sysinstall/media.c @@ -436,12 +436,16 @@ mediaSetFTPPassive(dialogMenuItem *self) int mediaSetHTTP(dialogMenuItem *self) { int result; - char *cp, *idx, hostname[MAXHOSTNAMELEN]; + char *cp, *idx, hostname[MAXHOSTNAMELEN], *var_hostname; extern int HttpPort; int what = DITEM_RESTORE; + var_hostname=variable_get(VAR_NAMESERVER); + variable_unset(VAR_NAMESERVER); result = mediaSetFTP(self); + variable_set2(VAR_NAMESERVER, var_hostname, 0); + if (DITEM_STATUS(result) != DITEM_SUCCESS) return result; -- cgit v1.1