hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit be7ba0e98f5ea5debcd34288224f57c360c63dd0
parent 266f583a8cf08c8c7788cf3ba7328e19bf406dc3
Author: spf13 <steve.francia@gmail.com>
Date:   Fri,  4 Oct 2013 16:03:13 -0400

server defaults to localhost unless overridden by command line flags

Diffstat:
Mcommands/server.go | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/commands/server.go b/commands/server.go
@@ -40,7 +40,8 @@ Serve them up.`,
 func server(cmd *cobra.Command, args []string) {
 	InitializeConfig()
 
-	if Config.BaseUrl == "" {
+	// Unless command line overrides, we use localhost for the server
+	if BaseUrl == "" {
 		Config.BaseUrl = "http://localhost:" + strconv.Itoa(serverPort)
 	}