Correctly install DNS servers on Android if frontend is not used.

This commit is contained in:
Tobias Brunner
2011-10-05 15:04:24 +02:00
parent 6c974a4fe3
commit 4437914ae0
3 changed files with 30 additions and 14 deletions
@@ -92,7 +92,6 @@ plugin_t *android_plugin_create()
},
},
.logger = android_logger_create(),
.handler = android_handler_create(),
.creds = android_creds_create(),
);
@@ -101,6 +100,7 @@ plugin_t *android_plugin_create()
hydra->attributes->add_handler(hydra->attributes, &this->handler->handler);
this->service = android_service_create(this->creds);
this->handler = android_handler_create(this->service != NULL);
return &this->public.plugin;
}