aboutsummaryrefslogtreecommitdiff
path: root/plugin/pkg/parse/host_test.go
diff options
context:
space:
mode:
authorGravatar junhwong <junhwong@users.noreply.github.com> 2023-05-26 20:35:34 +0800
committerGravatar GitHub <noreply@github.com> 2023-05-26 14:35:34 +0200
commit917489e71c637c7b1f1caeaaeee1431c5cb0d570 (patch)
tree7f905247028393782fc8663466c1f6061a81c0cc /plugin/pkg/parse/host_test.go
parent31ff926ea10a907bb3092d4f1df6d28d99302574 (diff)
downloadcoredns-917489e71c637c7b1f1caeaaeee1431c5cb0d570.tar.gz
coredns-917489e71c637c7b1f1caeaaeee1431c5cb0d570.tar.zst
coredns-917489e71c637c7b1f1caeaaeee1431c5cb0d570.zip
add support unix socket for GRPC (#5943)
Diffstat (limited to 'plugin/pkg/parse/host_test.go')
-rw-r--r--plugin/pkg/parse/host_test.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugin/pkg/parse/host_test.go b/plugin/pkg/parse/host_test.go
index 611f8284f..0b5f6f1ff 100644
--- a/plugin/pkg/parse/host_test.go
+++ b/plugin/pkg/parse/host_test.go
@@ -58,6 +58,16 @@ func TestHostPortOrFile(t *testing.T) {
"",
true,
},
+ {
+ "unix:///var/run/g.sock",
+ "unix:///var/run/g.sock",
+ false,
+ },
+ {
+ "unix://",
+ "",
+ true,
+ },
}
err := os.WriteFile("resolv.conf", []byte("nameserver 127.0.0.1\n"), 0600)