Skip to content

Commit

Permalink
Compile fix for either new go or new unbound
Browse files Browse the repository at this point in the history
  • Loading branch information
miekg committed Jun 29, 2014
1 parent 548db5f commit 01f99a3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ the need to parse `ub_result.data` yourself.

The website for Unbound is https://unbound.net/, were you can find further documentation.

Tested/compiled to work for versions: 1.4.19, 1.4.20, 1.4.21.
Tested/compiled to work for versions: 1.4.22

Note: using cgo means the executables will use shared libraries (for OpenSSL, ldns and libunbound).
4 changes: 2 additions & 2 deletions tutorial6/example.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ func main() {
log.Fatalf("error %s\n", err.Error())
}

if err := u.AddTaFile("keys"); err != nil {
if err := u.AddTaFile("skydns.keys"); err != nil {
log.Fatalf("error %s\n", err.Error())
}

r, err := u.Resolve("nlnetlabs.nl.", dns.TypeA, dns.ClassINET)
r, err := u.Resolve("server2.miek.skydns.dnssex.nl.", dns.TypeA, dns.ClassINET)
if err != nil {
log.Fatalf("error %s\n", err.Error())
}
Expand Down
2 changes: 1 addition & 1 deletion unbound.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ import (
)

type Unbound struct {
ctx *C.struct_ctx
ctx *C.struct_ub_ctx
version [3]int
}

Expand Down

0 comments on commit 01f99a3

Please sign in to comment.