From ee59a4a7734a4d27918ebeb200a888d2f7cfa7aa Mon Sep 17 00:00:00 2001 From: mappu Date: Sat, 8 Oct 2016 16:51:19 +1300 Subject: [PATCH] improve backward compatibility with dcwebui2 config files --- Config.go | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Config.go b/Config.go index d6c8d07..7301f47 100644 --- a/Config.go +++ b/Config.go @@ -2,22 +2,22 @@ package main type Config struct { App struct { - Name string - Version string - MotdHTML string - Debug bool + Name string `json:"name"` + Version string `json:"version"` + MotdHTML string `json:"motd"` + Debug bool `json:"debug"` } Web struct { - Port int - BindTo string - Extern string - Title string + Port int `json:"port"` + BindTo string `json:"bind_to"` + Extern string `json:"extern"` + Title string `json:"title"` } Hub struct { - Address string - Port int - Tag string + Address string `json:"address"` + Port int `json:"port"` + Tag string `json:"tag"` } }