diff options
Diffstat (limited to 'config/allconfig')
-rw-r--r-- | config/allconfig/allconfig.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/config/allconfig/allconfig.go b/config/allconfig/allconfig.go index f0e72dabc..d5d3dc4e7 100644 --- a/config/allconfig/allconfig.go +++ b/config/allconfig/allconfig.go @@ -400,6 +400,7 @@ type ConfigCompiled struct { Timeout time.Duration BaseURL urls.BaseURL BaseURLLiveReload urls.BaseURL + ServerInterface string KindOutputFormats map[string]output.Formats DisabledKinds map[string]bool DisabledLanguages map[string]bool @@ -434,9 +435,10 @@ func (c *ConfigCompiled) IsMainSectionsSet() bool { } // This is set after the config is compiled by the server command. -func (c *ConfigCompiled) SetBaseURL(baseURL, baseURLLiveReload urls.BaseURL) { +func (c *ConfigCompiled) SetServerInfo(baseURL, baseURLLiveReload urls.BaseURL, serverInterface string) { c.BaseURL = baseURL c.BaseURLLiveReload = baseURLLiveReload + c.ServerInterface = serverInterface } // RootConfig holds all the top-level configuration options in Hugo |