From 960c0cbddf8802ae440f2f9ae33bced4e2d72e44 Mon Sep 17 00:00:00 2001 From: Lode Hoste Date: Thu, 26 Mar 2015 21:36:06 +0100 Subject: [PATCH] Change (default) GUI port from 8080 to 8384 ('ST' in ascii values) --- cmd/stevents/main.go | 2 +- cmd/syncthing/main.go | 2 +- internal/config/config.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/stevents/main.go b/cmd/stevents/main.go index 7bc42c45..70def523 100644 --- a/cmd/stevents/main.go +++ b/cmd/stevents/main.go @@ -27,7 +27,7 @@ func main() { log.SetOutput(os.Stdout) log.SetFlags(0) - target := flag.String("target", "localhost:8080", "Target Syncthing instance") + target := flag.String("target", "localhost:8384", "Target Syncthing instance") apikey := flag.String("apikey", "", "Syncthing API key") flag.Parse() diff --git a/cmd/syncthing/main.go b/cmd/syncthing/main.go index 4ca717ec..886e3fb8 100644 --- a/cmd/syncthing/main.go +++ b/cmd/syncthing/main.go @@ -749,7 +749,7 @@ func defaultConfig(myName string) config.Configuration { }, } - port, err := getFreePort("127.0.0.1", 8080) + port, err := getFreePort("127.0.0.1", 8384) if err != nil { l.Fatalln("get free port (GUI):", err) } diff --git a/internal/config/config.go b/internal/config/config.go index 0462a6a6..cc3d1e54 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -187,7 +187,7 @@ type OptionsConfiguration struct { type GUIConfiguration struct { Enabled bool `xml:"enabled,attr" json:"enabled" default:"true"` - Address string `xml:"address" json:"address" default:"127.0.0.1:8080"` + Address string `xml:"address" json:"address" default:"127.0.0.1:8384"` User string `xml:"user,omitempty" json:"user"` Password string `xml:"password,omitempty" json:"password"` UseTLS bool `xml:"tls,attr" json:"useTLS"`