diff options
-rw-r--r-- | src/av-cp/main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/av-cp/main.c b/src/av-cp/main.c index df10862..7badf29 100644 --- a/src/av-cp/main.c +++ b/src/av-cp/main.c @@ -42,11 +42,13 @@ static int upnp_port = 0; static char **interfaces = NULL; +static char *user_agent = NULL; static GOptionEntry entries[] = { { "port", 'p', 0, G_OPTION_ARG_INT, &upnp_port, N_("Network PORT to use for UPnP"), "PORT" }, { "interface", 'i', 0, G_OPTION_ARG_STRING_ARRAY, &interfaces, N_("Network interfaces to use for UPnP communication"), "INTERFACE" }, + { "user-agent", 'u', 0, G_OPTION_ARG_STRING, &user_agent, N_("Application part of the User-Agent header to use for UPnP communication"), "USER-AGENT" }, { NULL } }; @@ -230,6 +232,10 @@ main (gint argc, return -4; } + if (user_agent != NULL) { + g_set_prgname (user_agent); + } + if (!init_ui ()) { return -2; } |