mirror of
				https://github.com/gohugoio/hugo.git
				synced 2024-05-11 05:54:58 +00:00 
			
		
		
		
	
				
					committed by
					
						 Bjørn Erik Pedersen
						Bjørn Erik Pedersen
					
				
			
			
				
	
			
			
			
						parent
						
							03a7016104
						
					
				
				
					commit
					c00a1fcb7f
				
			| @@ -71,6 +71,10 @@ func server(cmd *cobra.Command, args []string) { | ||||
| 		viper.Set("Watch", true) | ||||
| 	} | ||||
|  | ||||
| 	if viper.GetBool("watch") { | ||||
| 		serverWatch = true | ||||
| 	} | ||||
|  | ||||
| 	l, err := net.Listen("tcp", net.JoinHostPort(serverInterface, strconv.Itoa(serverPort))) | ||||
| 	if err == nil { | ||||
| 		l.Close() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user