bug fix relating to port numbers.
This commit is contained in:
committed by
Violet Ash
parent
8c8652ce67
commit
37fecde0c8
@@ -249,10 +249,10 @@ func serve() {
|
||||
r := mux.NewRouter()
|
||||
//for _, webpage := range config.Webpages {
|
||||
//}
|
||||
ServePage(r, config.WebpageDir, "/", string(config.WebpagePort))
|
||||
ServeApi(r, config.API, endpoint, function, string(config.APIPort))
|
||||
ServeAuthentication(r, string(config.AuthPort))
|
||||
addr := "0.0.0.0:" + string(config.RouterPort)
|
||||
ServePage(r, config.WebpageDir, "/", config.WebpagePort)
|
||||
ServeApi(r, config.API, endpoint, function, config.APIPort)
|
||||
ServeAuthentication(r, config.AuthPort)
|
||||
addr := "0.0.0.0:" + config.RouterPort
|
||||
|
||||
srv := &http.Server{
|
||||
Addr: addr,
|
||||
|
||||
@@ -70,11 +70,11 @@ type ConfigStructure struct {
|
||||
ResponseStream bool `mapstructure:"response_stream"`
|
||||
|
||||
Domain string `mapstructure:"domain"`
|
||||
RouterPort int `mapstructure:"router_port"`
|
||||
RouterPort string `mapstructure:"router_port"`
|
||||
API string `mapstructure:"api"`
|
||||
APIPort int `mapstructure:"api_port"`
|
||||
AuthPort int `mapstructure:"auth_port"`
|
||||
APIPort string `mapstructure:"api_port"`
|
||||
AuthPort string `mapstructure:"auth_port"`
|
||||
//Webpages WebpagesStructure `mapstructure:"webpages"`
|
||||
WebpageDir string `mapstructure:"webpage_dir"`
|
||||
WebpagePort int `mapstructure:"webpage_port"`
|
||||
WebpagePort string `mapstructure:"webpage_port"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user