aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.go b/main.go
index 3cec532..1b3971e 100644
--- a/main.go
+++ b/main.go
@@ -30,6 +30,7 @@ type ConfigAccount struct {
type ConfigFile struct {
ASBindAddr string `json:"appservice_bind_addr"`
+ WebBindAddr string `json:"web_bind_addr"`
Registration string `json:"registration"`
Server string `json:"homeserver_url"`
DbType string `json:"db_type"`
@@ -46,6 +47,7 @@ var registration *mxlib.Registration
func readConfig() ConfigFile {
config_file := ConfigFile{
ASBindAddr: "0.0.0.0:8321",
+ WebBindAddr: "0.0.0.0:8281",
Registration: "./registration.yaml",
Server: "http://localhost:8008",
DbType: "sqlite3",
@@ -170,6 +172,8 @@ func main() {
log.Fatal(err)
}
+ StartWeb()
+
for user, accounts := range config.Accounts {
for name, params := range accounts {
var conn connector.Connector