mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-26 12:36:15 -05:00
Add hostname (%h) and version (%v) templates for the servername parameter
This commit is contained in:
@@ -132,6 +132,11 @@ void txt_add(char *txtrecord, char *fmt, ...) {
|
||||
va_end(ap);
|
||||
|
||||
len = (int)strlen(buff);
|
||||
if(len + strlen(txtrecord) > 255) {
|
||||
DPRINTF(E_FATAL,L_MAIN,"dns-sd text string too long. Try a shorter "
|
||||
"share name.\n");
|
||||
}
|
||||
|
||||
end = txtrecord + strlen(txtrecord);
|
||||
*end = len;
|
||||
strcpy(end+1,buff);
|
||||
|
||||
Reference in New Issue
Block a user