aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--builtins.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/builtins.c b/builtins.c
index 1a096d8..d99025d 100644
--- a/builtins.c
+++ b/builtins.c
@@ -41,21 +41,26 @@ uint64_t backend_defaultpeer_configure(char* key, char* value){
free(default_peer.host);
default_peer.host = strdup(value);
default_peer.transport = peer_transport_detect;
+ return 0;
}
else if(!strcmp(key, "port")){
free(default_peer.port);
default_peer.port = strdup(value);
+ return 0;
}
else if(!strcmp(key, "protocol")){
free(default_peer_proto);
default_peer_proto = strdup(value);
+ return 0;
}
else if(!strcmp(key, "framing")){
default_peer.framing = plugin_framing(value);
+ return 0;
}
else if(!strcmp(key, "framing-config")){
free(default_peer.framing_config);
default_peer.framing_config = strdup(value);
+ return 0;
}
return 1;
}