1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-12 14:29:28 +00:00

Now I remember why I didn't write out the gateway in the DHCP case;

it was a feature.
This commit is contained in:
Jordan K. Hubbard 2000-02-20 21:58:10 +00:00
parent df2ef4c180
commit f53cb8a8cc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=57365
2 changed files with 2 additions and 2 deletions

View File

@ -369,7 +369,7 @@ tcpOpenDialog(Device *devp)
if (domainname[0])
variable_set2(VAR_DOMAINNAME, domainname, 0);
if (gateway[0])
variable_set2(VAR_GATEWAY, gateway, 1);
variable_set2(VAR_GATEWAY, gateway, use_dhcp ? 0 : 1);
if (nameserver[0])
variable_set2(VAR_NAMESERVER, nameserver, 0);
if (ipaddr[0])

View File

@ -369,7 +369,7 @@ tcpOpenDialog(Device *devp)
if (domainname[0])
variable_set2(VAR_DOMAINNAME, domainname, 0);
if (gateway[0])
variable_set2(VAR_GATEWAY, gateway, 1);
variable_set2(VAR_GATEWAY, gateway, use_dhcp ? 0 : 1);
if (nameserver[0])
variable_set2(VAR_NAMESERVER, nameserver, 0);
if (ipaddr[0])