diff options
-rw-r--r-- | release/sysinstall/media.c | 6 | ||||
-rw-r--r-- | usr.sbin/sysinstall/media.c | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/release/sysinstall/media.c b/release/sysinstall/media.c index 806cb4c..9be0b5b 100644 --- a/release/sysinstall/media.c +++ b/release/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; 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; |