mirror of
https://github.com/netbirdio/netbird.git
synced 2025-01-19 04:19:48 +01:00
update protocol
This commit is contained in:
parent
d18d2db9ee
commit
2d350b2522
@ -480,8 +480,10 @@ func infoToMetaData(info *system.Info) *proto.PeerSystemMeta {
|
|||||||
Cloud: info.Environment.Cloud,
|
Cloud: info.Environment.Cloud,
|
||||||
Platform: info.Environment.Platform,
|
Platform: info.Environment.Platform,
|
||||||
},
|
},
|
||||||
RosenpassEnabled: info.RosenpassEnabled,
|
Config: &proto.Config{
|
||||||
RosenpassPermissive: info.RosenpassPermissive,
|
RosenpassEnabled: info.Config.RosenpassEnabled,
|
||||||
ServerSSHAllowed: info.ServerSSHAllowed,
|
RosenpassPermissive: info.Config.RosenpassPermissive,
|
||||||
|
ServerSSHAllowed: info.Config.ServerSSHAllowed,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -100,6 +100,13 @@ message Environment {
|
|||||||
string platform = 2;
|
string platform = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Config is a message with local configuration settings of the peer
|
||||||
|
message Config {
|
||||||
|
bool rosenpassEnabled = 1;
|
||||||
|
bool rosenpassPermissive = 2;
|
||||||
|
bool serverSSHAllowed = 3;
|
||||||
|
}
|
||||||
|
|
||||||
// PeerSystemMeta is machine meta data like OS and version.
|
// PeerSystemMeta is machine meta data like OS and version.
|
||||||
message PeerSystemMeta {
|
message PeerSystemMeta {
|
||||||
string hostname = 1;
|
string hostname = 1;
|
||||||
@ -117,9 +124,7 @@ message PeerSystemMeta {
|
|||||||
string sysProductName = 13;
|
string sysProductName = 13;
|
||||||
string sysManufacturer = 14;
|
string sysManufacturer = 14;
|
||||||
Environment environment = 15;
|
Environment environment = 15;
|
||||||
bool rosenpassEnabled = 16;
|
Config config = 16;
|
||||||
bool rosenpassPermissive = 17;
|
|
||||||
bool serverSSHAllowed = 18;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
message LoginResponse {
|
message LoginResponse {
|
||||||
|
Loading…
Reference in New Issue
Block a user