diff options
author | cbdev <cb@cbcdn.com> | 2019-09-01 17:33:27 +0200 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2019-09-01 17:33:27 +0200 |
commit | b88b306db792a76371e3c9eddabb6f45d8a7e534 (patch) | |
tree | 668ebfeb9aefb64c6d36b687b2bac94bd7bc0d2f | |
parent | 8b963149b497464eec314766fb84d770241ac011 (diff) | |
download | websocksy-b88b306db792a76371e3c9eddabb6f45d8a7e534.tar.gz websocksy-b88b306db792a76371e3c9eddabb6f45d8a7e534.tar.bz2 websocksy-b88b306db792a76371e3c9eddabb6f45d8a7e534.zip |
Fix builtin backend configuration return code
-rw-r--r-- | builtins.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; } |