summaryrefslogtreecommitdiff
path: root/server/TetherController.cpp
diff options
context:
space:
mode:
authorErik Kline <ek@google.com>2015-11-13 20:30:22 +0900
committerErik Kline <ek@google.com>2015-11-13 20:30:22 +0900
commitf1dfabed0a9b6ee9c37b64db3bbcb656281d4771 (patch)
treef3845533964c522ced0aa139a9a8a0e83b96370f /server/TetherController.cpp
parentf90a8b92eaf5e74979f589f1f6d3fa403dc26680 (diff)
Tell dnsmasq not to start wildcard sockets
Bug: 9580643 Change-Id: I8c95c15970d6ed72dc44cec42c4eb78e18ed46ba
Diffstat (limited to 'server/TetherController.cpp')
-rw-r--r--server/TetherController.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/TetherController.cpp b/server/TetherController.cpp
index 19d9aa6e..999d31d6 100644
--- a/server/TetherController.cpp
+++ b/server/TetherController.cpp
@@ -120,7 +120,7 @@ size_t TetherController::forwardingRequestCount() {
return mForwardingRequests.size();
}
-#define TETHER_START_CONST_ARG 8
+#define TETHER_START_CONST_ARG 9
int TetherController::startTethering(int num_addrs, char **dhcp_ranges) {
if (mDaemonPid != 0) {
@@ -172,6 +172,7 @@ int TetherController::startTethering(int num_addrs, char **dhcp_ranges) {
args[5] = (char *)"--dhcp-option-force=43,ANDROID_METERED";
args[6] = (char *)"--pid-file";
args[7] = (char *)"";
+ args[8] = (char *)"-z"; // OPT_NOWILD
int nextArg = TETHER_START_CONST_ARG;
for (int addrIndex = 0; addrIndex < num_addrs; addrIndex += 2) {