summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-10-16 18:31:15 +0200
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-10-16 18:41:32 +0200
commit777204d72f9d184e4416f943d8a1a38051dfb5ae (patch)
tree5d1c32591e6e8be46196dd3a2a4f968c155f4694
parent6a7bde4d4fefc609f9f1d1204520879a5a0fd526 (diff)
Update default syncthing port to 8386
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
-rw-r--r--agent-config.json.in4
-rw-r--r--lib/syncthing/st.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/agent-config.json.in b/agent-config.json.in
index 0ef6d63..35d702d 100644
--- a/agent-config.json.in
+++ b/agent-config.json.in
@@ -3,7 +3,7 @@
"xds-apikey": "1234abcezam",
"syncthing": {
"home": "${HOME}/.xds/agent/syncthing-config",
- "gui-address": "http://localhost:8384",
+ "gui-address": "http://localhost:8386",
"gui-apikey": "1234abcezam"
}
-} \ No newline at end of file
+}
diff --git a/lib/syncthing/st.go b/lib/syncthing/st.go
index 660738d..6199a8f 100644
--- a/lib/syncthing/st.go
+++ b/lib/syncthing/st.go
@@ -58,7 +58,7 @@ func NewSyncThing(conf *xdsconfig.Config, log *logrus.Logger) *SyncThing {
}
if url == "" {
- url = "http://localhost:8384"
+ url = "http://localhost:8386"
}
if url[0:7] != "http://" {
url = "http://" + url