mirror of https://github.com/grpc/grpc-go.git
Set the security level of Windows named pipes to NoSecurity (#6956)
This commit is contained in:
parent
05db80f118
commit
f94be9b5f2
|
|
@ -65,6 +65,9 @@ func getSecurityLevel(network, addr string) (credentials.SecurityLevel, error) {
|
|||
// Local TCP connection
|
||||
case strings.HasPrefix(addr, "127."), strings.HasPrefix(addr, "[::1]:"):
|
||||
return credentials.NoSecurity, nil
|
||||
// Windows named pipe connection
|
||||
case network == "pipe" && strings.HasPrefix(addr, `\\.\pipe\`):
|
||||
return credentials.NoSecurity, nil
|
||||
// UDS connection
|
||||
case network == "unix":
|
||||
return credentials.PrivacyAndIntegrity, nil
|
||||
|
|
|
|||
Loading…
Reference in New Issue