From: Sebastien Douheret Date: Mon, 16 Oct 2017 16:31:15 +0000 (+0200) Subject: Update default syncthing port to 8386 X-Git-Tag: v0.2.0~2 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fxds%2Fxds-agent.git;a=commitdiff_plain;h=777204d72f9d184e4416f943d8a1a38051dfb5ae Update default syncthing port to 8386 Signed-off-by: Sebastien Douheret --- 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