summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/afb-socket.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/afb-socket.c b/src/afb-socket.c
index 77b5edf8..f4ee7e1e 100644
--- a/src/afb-socket.c
+++ b/src/afb-socket.c
@@ -366,9 +366,11 @@ const char *afb_socket_api(const char *uri)
{
int offset;
const char *api;
+ struct entry *entry;
- get_entry(uri, &offset);
+ entry = get_entry(uri, &offset);
uri += offset;
+ uri += (entry->type == Type_Unix && *uri == '@');
api = strstr(uri, as_api);
if (api)
api += sizeof as_api - 1;