More types.

This commit is contained in:
2020-12-23 23:21:47 +01:00
parent a1261c1b8f
commit 7ecbae27c2
10 changed files with 138 additions and 23 deletions

View File

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