From b4f9a55e6eff37e891a26909de7a378014e64cd0 Mon Sep 17 00:00:00 2001 From: Audrius Butkevicius Date: Fri, 25 Mar 2016 20:29:07 +0000 Subject: [PATCH] protocol: Add "Hello" message at connection start, also for unauthed peers --- gui/default/index.html | 6 +- .../syncthing/core/syncthingController.js | 3 +- lib/auto/gui.files.go | 6 +- lib/connections/connections.go | 102 +++++++++++---- lib/model/model.go | 119 +++++++++++------- lib/model/model_test.go | 37 +++--- lib/protocol/message.go | 18 ++- lib/protocol/message_xdr.go | 111 +++++++++++----- lib/protocol/protocol_test.go | 4 +- 9 files changed, 267 insertions(+), 139 deletions(-) diff --git a/gui/default/index.html b/gui/default/index.html index 62def151..89fd2ae0 100755 --- a/gui/default/index.html +++ b/gui/default/index.html @@ -130,14 +130,14 @@

- - Device {%device%} ({%address%}) wants to connect. Add new device? + + Device "{%name%}" ({%device%} at {%address%}) wants to connect. Add new device?