aboutsummaryrefslogtreecommitdiff
path: root/plugin/grpc/setup_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/grpc/setup_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/grpc/setup_test.go')
-rw-r--r--plugin/grpc/setup_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugin/grpc/setup_test.go b/plugin/grpc/setup_test.go
index 1d9e93b7f..f142099c3 100644
--- a/plugin/grpc/setup_test.go
+++ b/plugin/grpc/setup_test.go
@@ -25,6 +25,7 @@ func TestSetup(t *testing.T) {
{"grpc . 127.0.0.1:8080", false, ".", nil, ""},
{"grpc . [::1]:53", false, ".", nil, ""},
{"grpc . [2003::1]:53", false, ".", nil, ""},
+ {"grpc . unix:///var/run/g.sock", false, ".", nil, ""},
// negative
{"grpc . a27.0.0.1", true, "", nil, "not an IP"},
{"grpc . 127.0.0.1 {\nblaatl\n}\n", true, "", nil, "unknown property"},