Change-Id: Ic707b52dd6029bd60242f03fcc04b6596f1cb017
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
static const char _mode_[] = "mode";
static const char _local_[] = "local";
static const char _remote_[]= "remote";
+static const char _auto_[] = "auto";
static const char _uri_[] = "uri";
static struct jbus *jbus;
}
/* get the mode */
mode = getQueryValue(request, _mode_);
- if (mode == NULL) {
+ if (mode == NULL || !strcmp(mode, _auto_)) {
mode = request->config->mode == AFB_MODE_REMOTE ? _remote_ : _local_;
}