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
This commit is contained in:
murray 2000-04-10 19:39:01 +00:00
parent 91cd5e3147
commit 34728f4952
2 changed files with 10 additions and 2 deletions

View File

@ -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;

View File

@ -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;