}
freeaddrinfo(rai);
return -1;
-
}
static int api_ws_socket(const char *path, int server)
goto error;
/* check api name */
- if (afb_apiset_has(apiset, apiws->api, 1)) {
+ if (!afb_apiset_lookup(apiset, apiws->api, 1)) {
ERROR("Can't provide ws-server for %s: API %s doesn't exist", path, apiws->api);
goto error2;
}