aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2019-09-01 17:33:27 +0200
committercbdev <cb@cbcdn.com>2019-09-01 17:33:27 +0200
commitb88b306db792a76371e3c9eddabb6f45d8a7e534 (patch)
tree668ebfeb9aefb64c6d36b687b2bac94bd7bc0d2f
parent8b963149b497464eec314766fb84d770241ac011 (diff)
downloadwebsocksy-b88b306db792a76371e3c9eddabb6f45d8a7e534.tar.gz
websocksy-b88b306db792a76371e3c9eddabb6f45d8a7e534.tar.bz2
websocksy-b88b306db792a76371e3c9eddabb6f45d8a7e534.zip
Fix builtin backend configuration return code
-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;
}