mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 22:56:12 -04:00
Client is able to send payload when the connection unencrypted, for example, NC allow client to send payload to multiple endpoints when at least one endpoint encrypted, it's a security leak that sending data to other unencrypted endpoint. Reject to send unencrypted data in PayloadManager to fix this.
PiperOrigin-RevId: 390047577
This commit is contained in:
@@ -171,6 +171,9 @@ enum PayloadStatus {
|
||||
|
||||
// The payload was canceled by the remote endpoint.
|
||||
REMOTE_CANCELLATION = 8;
|
||||
|
||||
// The connection not encrypted yet.
|
||||
ENDPOINT_UNENCRYPTED = 9;
|
||||
}
|
||||
|
||||
// next_id: 19
|
||||
|
||||
Reference in New Issue
Block a user