2-add-keyword-support (#6)
More development. More types. Fixed attribute groups in requests. Started on client. Saving data to file. More types. Printing from chromeos works a little bit. More types. Spelling corrections. WIP: Fix keyword handling Move request to a separate file and add test. Co-authored-by: Henrik Sölver <henrik.solver@gmail.com> Reviewed-on: #6 Co-Authored-By: henrik <henrik.solver@gmail.com> Co-Committed-By: henrik <henrik.solver@gmail.com>
This commit was merged in pull request #6.
This commit is contained in:
@@ -24,7 +24,7 @@ func Run(ctx context.Context) {
|
||||
log.Fatalf("EntryGroupNew() failed: %v", err)
|
||||
}
|
||||
|
||||
hostname, err := a.GetHostName()
|
||||
//hostname, err := a.GetHostName()
|
||||
if err != nil {
|
||||
log.Fatalf("GetHostName() failed: %v", err)
|
||||
}
|
||||
@@ -39,7 +39,8 @@ 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"))
|
||||
err = eg.AddService(avahi.InterfaceUnspec, avahi.ProtoUnspec, 0, hostname, "_ipp._tcp", "local", fqdn, 1234, txt)
|
||||
txt = append(txt, []byte("ty=ChroBro 001"))
|
||||
err = eg.AddService(avahi.InterfaceUnspec, avahi.ProtoUnspec, 0, "ChroBro 1000", "_ipp._tcp", "local", fqdn, 1234, txt)
|
||||
if err != nil {
|
||||
log.Fatalf("AddService() failed: %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user