@@ -583,6 +583,10 @@ inline static const char* get_remote_addr() {
583583static int modify_host_struct (HOST& host) {
584584 host.timezone = g_request->host .timezone ;
585585 strlcpy (host.domain_name , g_request->host .domain_name , sizeof (host.domain_name ));
586+
587+ // assemble a string with info about BOINC client, GPUs, VBox, and Docker
588+ // store it in host.serialnum
589+ //
586590 char buf[1024 ], buf2[1024 ];
587591 sprintf (buf, " [BOINC|%d.%d.%d" ,
588592 g_request->core_client_major_version ,
@@ -594,8 +598,8 @@ static int modify_host_struct(HOST& host) {
594598 strcat (buf, g_request->client_brand );
595599 }
596600 strcat (buf, " ]" );
597- g_request->coprocs .summary_string (buf2, sizeof (buf2));
598601 strlcpy (host.serialnum , buf, sizeof (host.serialnum ));
602+ g_request->coprocs .summary_string (buf2, sizeof (buf2));
599603 strlcat (host.serialnum , buf2, sizeof (host.serialnum ));
600604 if (strlen (g_request->host .virtualbox_version )) {
601605 sprintf (buf2, " [vbox|%s|%d|%d]" ,
@@ -605,6 +609,7 @@ static int modify_host_struct(HOST& host) {
605609 );
606610 strlcat (host.serialnum , buf2, sizeof (host.serialnum ));
607611 }
612+
608613 if (strcmp (host.last_ip_addr , g_request->host .last_ip_addr )) {
609614 strlcpy (
610615 host.last_ip_addr , g_request->host .last_ip_addr ,
0 commit comments