mirror of
https://github.com/miekg/dns.git
synced 2026-05-06 07:06:11 +02:00
Make err explicit and drop the deref on *master
This commit is contained in:
parent
7da40742a8
commit
273bc1d0ee
4
xfr.go
4
xfr.go
@ -28,10 +28,10 @@ type Transfer struct {
|
||||
// in the Transfer.Conn:
|
||||
//
|
||||
// d := net.Dialer{LocalAddr: transfer_source}
|
||||
// con, _ := d.Dial("tcp", *master)
|
||||
// con, err := d.Dial("tcp", master)
|
||||
// dnscon := &dns.Conn{Conn:con}
|
||||
// transfer = &dns.Transfer{Conn: dnscon}
|
||||
// channel, err := transfer.In(message, *master)
|
||||
// channel, err := transfer.In(message, master)
|
||||
//
|
||||
func (t *Transfer) In(q *Msg, a string) (env chan *Envelope, err error) {
|
||||
timeout := dnsTimeout
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user