add support unix socket for GRPC (#5943)

This commit is contained in:
junhwong
2023-05-26 20:35:34 +08:00
committed by GitHub
parent 31ff926ea1
commit 917489e71c
7 changed files with 91 additions and 1 deletions

View File

@@ -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"},