From 4103bc46101f828e014055bf27d4e6d9673a308b Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Fri, 16 Dec 2011 18:03:32 +0100 Subject: [PATCH] Make chaos work --- _examples/chaos/chaos.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_examples/chaos/chaos.go b/_examples/chaos/chaos.go index a8a0634b..ab33f8ac 100644 --- a/_examples/chaos/chaos.go +++ b/_examples/chaos/chaos.go @@ -55,8 +55,8 @@ func addresses(conf *dns.ClientConfig, c *dns.Client, name string) []string { m4.SetQuestion(os.Args[1], dns.TypeA) m6 := new(dns.Msg) m6.SetQuestion(os.Args[1], dns.TypeAAAA) - c.Do(m4, conf.Servers[0]) // Also 1 and 2 (and merge the results?? - c.Do(m6, conf.Servers[0]) + c.Do(m4, conf.Servers[0] + ":" + conf.Port) + c.Do(m6, conf.Servers[0] + ":" + conf.Port) var ips []string i := 2 // two outstanding queries