aboutsummaryrefslogtreecommitdiff
path: root/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'server.go')
-rw-r--r--server.go12
1 files changed, 2 insertions, 10 deletions
diff --git a/server.go b/server.go
index 10721be..84a1e85 100644
--- a/server.go
+++ b/server.go
@@ -13,14 +13,6 @@ import (
"git.deuxfleurs.fr/Deuxfleurs/easybridge/mxlib"
)
-type Config struct {
- HttpBindAddr string
- Server string
- DbType string
- DbPath string
- MatrixDomain string
-}
-
var mx *mxlib.Client
func StartAppService() (chan error, error) {
@@ -55,8 +47,8 @@ func StartAppService() (chan error, error) {
errch := make(chan error)
go func() {
- log.Printf("Starting HTTP server on %s", config.HttpBindAddr)
- err := http.ListenAndServe(config.HttpBindAddr, checkTokenAndLog(router))
+ log.Printf("Starting HTTP server on %s", config.ASBindAddr)
+ err := http.ListenAndServe(config.ASBindAddr, checkTokenAndLog(router))
if err != nil {
errch <- err
}