mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 03:18:59 +00:00
9a0e5a7c18
A random "instance ID" is generated on each start of the local discovery service. The instance ID is included in the announcement. When we see a new instance ID we treat is a new device and respond with an announcement of our own. Hence devices get to know each other quickly on restart. GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3385
16 lines
429 B
Protocol Buffer
16 lines
429 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package discover;
|
|
|
|
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
|
|
|
|
option (gogoproto.goproto_getters_all) = false;
|
|
option (gogoproto.sizer_all) = false;
|
|
option (gogoproto.protosizer_all) = true;
|
|
|
|
message Announce {
|
|
bytes id = 1 [(gogoproto.customname) = "ID"];
|
|
repeated string addresses = 2;
|
|
int64 instance_id = 3 [(gogoproto.customname) = "InstanceID"];
|
|
}
|