ailistener

git clone git://archive.git.mtrnord.blog/OpenHomeAuto/ailistener.git
Log | Files | Refs | LICENSE

commit 012c73171ccbca6794c945dd4c892093b4be015e
parent cb836adad13c46a802ece87204ddcaba6f8ae154
Author: MTRNord <mtrnord1@gmail.com>
Date:   Thu, 28 Jun 2018 20:15:22 +0200

We have to use http 80 port

Diffstat:
M.idea/usage.statistics.xml | 12++++++------
Mcmd/root.go | 1-
Mpkg/util/vars.go | 2--
Mpkg/webhook/webhook.go | 2+-
4 files changed, 7 insertions(+), 10 deletions(-)

diff --git a/.idea/usage.statistics.xml b/.idea/usage.statistics.xml @@ -38,24 +38,24 @@ <session id="958628364"> <usages-collector id="statistics.file.extensions.edit"> <counts> - <entry key="go" value="75" /> - <entry key="txt" value="39" /> + <entry key="go" value="77" /> + <entry key="txt" value="53" /> </counts> </usages-collector> <usages-collector id="statistics.file.types.edit"> <counts> - <entry key="Go" value="75" /> - <entry key="PLAIN_TEXT" value="39" /> + <entry key="Go" value="77" /> + <entry key="PLAIN_TEXT" value="53" /> </counts> </usages-collector> <usages-collector id="statistics.file.extensions.open"> <counts> - <entry key="go" value="1" /> + <entry key="go" value="2" /> </counts> </usages-collector> <usages-collector id="statistics.file.types.open"> <counts> - <entry key="Go" value="1" /> + <entry key="Go" value="2" /> </counts> </usages-collector> </session> diff --git a/cmd/root.go b/cmd/root.go @@ -54,5 +54,4 @@ func Execute() { func init() { util.ServiceAccountFilePath = rootCmd.Flags().String("serviceAccountJson", "", "Enter a Path to the exported json file from your service account") util.HTTPSPort = rootCmd.Flags().Int("https-port", 8888, "Define the SSL Port to listen on") - util.HTTPPort = rootCmd.Flags().Int("http-port", 8884, "Define the HTTP Port to listen on") } diff --git a/pkg/util/vars.go b/pkg/util/vars.go @@ -3,5 +3,3 @@ package util var ServiceAccountFilePath *string var HTTPSPort *int - -var HTTPPort *int diff --git a/pkg/webhook/webhook.go b/pkg/webhook/webhook.go @@ -43,7 +43,7 @@ func Start() { httpserver := makeServerFromMux(m.HTTPHandler(nil)) - httpserver.Addr = ":" + strconv.Itoa(*util.HTTPPort) + httpserver.Addr = ":80" go func() { fmt.Printf("Starting HTTP server on %s\n", httpserver.Addr)