mdns: add rp parameter
This commit is contained in:
@@ -37,6 +37,7 @@ func Run(ctx context.Context) {
|
|||||||
txt = append(txt, []byte("note=burken"))
|
txt = append(txt, []byte("note=burken"))
|
||||||
txt = append(txt, []byte("product=coola-skrivaren"))
|
txt = append(txt, []byte("product=coola-skrivaren"))
|
||||||
txt = append(txt, []byte("Color=T"))
|
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)
|
err = eg.AddService(avahi.InterfaceUnspec, avahi.ProtoUnspec, 0, hostname, "_ipp._tcp", "local", fqdn, 1234, txt)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("AddService() failed: %v", err)
|
log.Fatalf("AddService() failed: %v", err)
|
||||||
|
|||||||
Reference in New Issue
Block a user