Set default endpoint
This commit is contained in:
		
							parent
							
								
									bc35aece9b
								
							
						
					
					
						commit
						87cb056ce3
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -42,5 +42,9 @@ func CreateConfig(path string, cfg *Config) {
 | 
			
		|||
		cfg.Zerooo.Location = filepath.Join(filepath.Dir(path), cfg.Zerooo.Location)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if cfg.Zerooo.Endpoint == "" {
 | 
			
		||||
		cfg.Zerooo.Endpoint = "https://zer.ooo"
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	Check(err, "Couldn't parse %q, err: %s", path, err)
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue