aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2019-01-28 05:57:40 +0700
committerShulhan <ms@kilabit.info>2019-01-28 15:26:02 +0700
commit92bb91193cdfebf3ea1b716433c950a2a6c9a4b5 (patch)
tree9e4522ac2939384818b788a031662fd72730404f
parent0d2f31a9598affe7ccd19a60f6a1dc63c57768bd (diff)
downloadpakakeh.go-92bb91193cdfebf3ea1b716433c950a2a6c9a4b5.tar.xz
lib/dns: change the port number on test
The previous port number, 5353, is used by another program, which make the test run failed. The new port number is 5300.
-rw-r--r--lib/dns/dns_test.go6
-rw-r--r--lib/dns/example_server_test.go6
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/dns/dns_test.go b/lib/dns/dns_test.go
index 77495249..41a2156e 100644
--- a/lib/dns/dns_test.go
+++ b/lib/dns/dns_test.go
@@ -14,7 +14,7 @@ import (
)
const (
- testServerAddress = "127.0.0.1:5353"
+ testServerAddress = "127.0.0.1:5300"
)
var ( // nolint: gochecknoglobals
@@ -213,8 +213,8 @@ func TestMain(m *testing.M) {
serverOptions := &ServerOptions{
IPAddress: "127.0.0.1",
- UDPPort: 5353,
- TCPPort: 5353,
+ UDPPort: 5300,
+ TCPPort: 5300,
DoHPort: 8443,
DoHCert: "testdata/domain.crt",
DoHCertKey: "testdata/domain.key",
diff --git a/lib/dns/example_server_test.go b/lib/dns/example_server_test.go
index e5c3a4fe..e59c81df 100644
--- a/lib/dns/example_server_test.go
+++ b/lib/dns/example_server_test.go
@@ -210,7 +210,7 @@ func clientLookup(nameserver string) {
}
func ExampleServer() {
- serverAddress := "127.0.0.1:5353"
+ serverAddress := "127.0.0.1:5300"
handler := &serverHandler{}
@@ -222,8 +222,8 @@ func ExampleServer() {
serverOptions := &dns.ServerOptions{
IPAddress: "127.0.0.1",
- TCPPort: 5353,
- UDPPort: 5353,
+ TCPPort: 5300,
+ UDPPort: 5300,
DoHPort: 8443,
DoHCert: "testdata/domain.crt",
DoHCertKey: "testdata/domain.key",