summaryrefslogtreecommitdiff
path: root/server/TetherController.cpp
diff options
context:
space:
mode:
authorErik Kline <ek@google.com>2015-12-17 06:48:18 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-12-17 06:48:18 +0000
commit3000ca535156a189f87de7e08d89fb98872c4068 (patch)
tree48dda5206ac976ed89745e09ee430513f5171760 /server/TetherController.cpp
parent6cff1fb26201baf2c90a35d45225e54fdf9fb14e (diff)
parentf1dfabed0a9b6ee9c37b64db3bbcb656281d4771 (diff)
Merge "Tell dnsmasq not to start wildcard sockets"
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 dbbd933b..697bbe46 100644
--- a/server/TetherController.cpp
+++ b/server/TetherController.cpp
@@ -121,7 +121,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) {
@@ -173,6 +173,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) {