Skip to content

Commit 15f6a9e

Browse files
committed
plugin: validate if 'proxy go' is enabled (fluent#1440)
Signed-off-by: Eduardo Silva <[email protected]>
1 parent 8eb753a commit 15f6a9e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/flb_plugin.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,10 +278,15 @@ int flb_plugin_load_router(char *path, struct flb_config *config)
278278
}
279279
}
280280
else {
281+
#ifdef FLB_HAVE_PROXY_GO
281282
if (flb_plugin_proxy_create(path, 0, config) == NULL) {
282283
flb_error("[plugin] error loading proxy plugin: %s", path);
283284
return -1;
284285
}
286+
#else
287+
flb_error("[plugin] unsupported plugin type at: %s", path);
288+
return -1;
289+
#endif
285290
}
286291

287292
return 0;

0 commit comments

Comments
 (0)