mdns: add rp parameter

This commit is contained in:
2020-10-28 09:41:16 +01:00
parent 206e60e400
commit 3969d2844b

View File

@@ -37,6 +37,7 @@ func Run(ctx context.Context) {
txt = append(txt, []byte("note=burken"))
txt = append(txt, []byte("product=coola-skrivaren"))
txt = append(txt, []byte("Color=T"))
txt = append(txt, []byte("rp=ipp/print"))
err = eg.AddService(avahi.InterfaceUnspec, avahi.ProtoUnspec, 0, hostname, "_ipp._tcp", "local", fqdn, 1234, txt)
if err != nil {
log.Fatalf("AddService() failed: %v", err)