mirror of
https://github.com/ntop/n2n.git
synced 2024-09-20 00:51:10 +02:00
handled metric default
This commit is contained in:
parent
09e8d5e730
commit
c5a0d186b0
|
@ -315,6 +315,7 @@ int open_wintap(struct tuntap_dev *device,
|
|||
|
||||
/* metric */
|
||||
|
||||
if(metric) { /* try to change only if a value has been given, otherwise leave with default or as set before */
|
||||
device->metric = metric;
|
||||
|
||||
_snprintf(cmd, sizeof(cmd),
|
||||
|
@ -324,7 +325,7 @@ int open_wintap(struct tuntap_dev *device,
|
|||
if(system(cmd) != 0)
|
||||
printf("WARNING: Unable to set device %s parameters metric=%d [%s]\n",
|
||||
device->ifName, device->metric, cmd);
|
||||
|
||||
}
|
||||
|
||||
/* ****************** */
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user