aboutsummaryrefslogtreecommitdiff
path: root/lib/dns/example_server_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dns/example_server_test.go')
-rw-r--r--lib/dns/example_server_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dns/example_server_test.go b/lib/dns/example_server_test.go
index 9daa0749..96aac8bb 100644
--- a/lib/dns/example_server_test.go
+++ b/lib/dns/example_server_test.go
@@ -52,7 +52,7 @@ func ExampleServer() {
// Load records to be served from master file.
server.LoadMasterFile("testdata/kilabit.info")
- server.Start()
+ go server.ListenAndServe()
// Wait for all listeners running.
time.Sleep(500 * time.Millisecond)