allow setting hostname/port for vpcd/vicc interfaces

This commit is contained in:
Frank Morgner
2015-03-18 07:30:03 +01:00
parent 65f7d92a7f
commit 798fb9ba0d
5 changed files with 44 additions and 12 deletions

View File

@@ -29,6 +29,7 @@
unsigned int vpcdport = VPCDPORT;
char *vpcdhostname = NULL;
static int vpcd_connect(driver_data_t **driver_data)
@@ -41,7 +42,7 @@ static int vpcd_connect(driver_data_t **driver_data)
return 0;
ctx = vicc_init(NULL, vpcdport);
ctx = vicc_init(vpcdhostname, vpcdport);
if (!ctx) {
RELAY_ERROR("Could not initialize connection to virtual ICC\n");
return 0;