diff options
author | jkh <jkh@FreeBSD.org> | 2000-01-25 05:56:49 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 2000-01-25 05:56:49 +0000 |
commit | b6f601a801926a106b3328c65333116714d51c76 (patch) | |
tree | 817a80d613c18f3380e23ea375b7e65282fddb05 /usr.sbin/sysinstall/media.c | |
parent | 8cd8c3184d4856344fb6419a35ab3bd51851584b (diff) | |
download | FreeBSD-src-b6f601a801926a106b3328c65333116714d51c76.zip FreeBSD-src-b6f601a801926a106b3328c65333116714d51c76.tar.gz |
o Fix http proxy code for various extentions and deal with FTP archive
format changes.
o Make anonymous ftp setup more analy retentive.
PR: 16070
Submitted by: Philipp Mergenthaler <un1i@rz.uni-karlsruhe.de>
Diffstat (limited to 'usr.sbin/sysinstall/media.c')
-rw-r--r-- | usr.sbin/sysinstall/media.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/usr.sbin/sysinstall/media.c b/usr.sbin/sysinstall/media.c index 960e669..806cb4c 100644 --- a/usr.sbin/sysinstall/media.c +++ b/usr.sbin/sysinstall/media.c @@ -445,7 +445,6 @@ int mediaSetHTTP(dialogMenuItem *self) if (DITEM_STATUS(result) != DITEM_SUCCESS) return result; - variable_set2(VAR_HTTP_PATH, "", 0); cp = variable_get_value(VAR_HTTP_PATH, "Please enter the address of the HTTP proxy in this format:\n" " hostname:port (the ':port' is optional, default is 3128)",0); @@ -461,11 +460,11 @@ int mediaSetHTTP(dialogMenuItem *self) variable_set2(VAR_HTTP_HOST, hostname, 0); variable_set2(VAR_HTTP_PORT, itoa(HttpPort), 0); - msgDebug("VAR_HTTP_HOST, _PORT: %s:%s",variable_get(VAR_HTTP_HOST), - variable_get(VAR_HTTP_PORT)); - - msgDebug("VAR_FTP_HOST, _PORT: %s:%s", variable_get(VAR_FTP_HOST), - variable_get(VAR_FTP_PORT)); + if (isDebug()) { + msgDebug("VAR_FTP_PATH : %s",variable_get(VAR_FTP_PATH)); + msgDebug("VAR_HTTP_HOST, _PORT: %s:%s",variable_get(VAR_HTTP_HOST), + variable_get(VAR_HTTP_PORT)); + } /* mediaDevice has been set by mediaSetFTP(), overwrite partly: */ mediaDevice->type = DEVICE_TYPE_HTTP; |