Deal with new "auto" setting for network_interfaces.
This commit is contained in:
parent
34f08a7227
commit
04270f9e70
@ -391,7 +391,7 @@ tcpOpenDialog(Device *devp)
|
||||
sprintf(temp, "inet %s %s netmask %s", ipaddr, extras, netmask);
|
||||
variable_set2(ifn, temp, 1);
|
||||
ifaces = variable_get(VAR_INTERFACES);
|
||||
if (!ifaces)
|
||||
if (!ifaces || !strcmp(ifaces, "auto"))
|
||||
variable_set2(VAR_INTERFACES, ifaces = "lo0", 1);
|
||||
/* Only add it if it's not there already */
|
||||
if (!strstr(ifaces, devp->name)) {
|
||||
|
@ -391,7 +391,7 @@ tcpOpenDialog(Device *devp)
|
||||
sprintf(temp, "inet %s %s netmask %s", ipaddr, extras, netmask);
|
||||
variable_set2(ifn, temp, 1);
|
||||
ifaces = variable_get(VAR_INTERFACES);
|
||||
if (!ifaces)
|
||||
if (!ifaces || !strcmp(ifaces, "auto"))
|
||||
variable_set2(VAR_INTERFACES, ifaces = "lo0", 1);
|
||||
/* Only add it if it's not there already */
|
||||
if (!strstr(ifaces, devp->name)) {
|
||||
|
Loading…
Reference in New Issue
Block a user