diff options
author | Joe Mooring <[email protected]> | 2024-04-13 09:22:19 -0700 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-04-13 22:16:00 +0200 |
commit | 09eb822822b9f2881fa33391311f1e38a3ee4a48 (patch) | |
tree | 917bbd227f599018ccf99a8f33a965b5de719a43 /config/allconfig | |
parent | a6e84391760ca3786bf580344e2a013ac54b4b4a (diff) | |
download | hugo-09eb822822b9f2881fa33391311f1e38a3ee4a48.tar.gz hugo-09eb822822b9f2881fa33391311f1e38a3ee4a48.zip |
hugolib: Display server address after each rebuild
Closes #12359
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 |