mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-01 05:43:46 +00:00
Bug 936393 - Make sure stop tethering works correctly when there are different tethering types enabled. r=vchang
This commit is contained in:
parent
15e652486c
commit
5750a786bb
@ -555,16 +555,8 @@ function enableNat(params, callback) {
|
||||
}
|
||||
|
||||
function disableNat(params, callback) {
|
||||
let command;
|
||||
|
||||
// Don't disable nat because others interface still need it.
|
||||
// Send the dummy command to continue the function chain.
|
||||
if ("interfaceList" in params && params.interfaceList.length > 1) {
|
||||
command = DUMMY_COMMAND;
|
||||
} else {
|
||||
command = "nat disable " + params.internalIfname + " " +
|
||||
params.externalIfname + " " + "0";
|
||||
}
|
||||
let command = "nat disable " + params.internalIfname + " " +
|
||||
params.externalIfname + " " + "0";
|
||||
return doCommand(command, callback);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user