mirror of
				https://github.com/juanfont/headscale.git
				synced 2025-10-28 10:51:44 +01:00 
			
		
		
		
	Use config object instead of viper for policy path
This commit is contained in:
		
							parent
							
								
									24e4787a64
								
							
						
					
					
						commit
						6b1482daee
					
				| @ -435,8 +435,8 @@ func getHeadscaleApp() (*headscale.Headscale, error) { | |||||||
| 
 | 
 | ||||||
| 	// We are doing this here, as in the future could be cool to have it also hot-reload
 | 	// We are doing this here, as in the future could be cool to have it also hot-reload
 | ||||||
| 
 | 
 | ||||||
| 	if viper.GetString("acl_policy_path") != "" { | 	if cfg.ACL.PolicyPath != "" { | ||||||
| 		aclPath := absPath(viper.GetString("acl_policy_path")) | 		aclPath := absPath(cfg.ACL.PolicyPath) | ||||||
| 		err = app.LoadACLPolicy(aclPath) | 		err = app.LoadACLPolicy(aclPath) | ||||||
| 		if err != nil { | 		if err != nil { | ||||||
| 			log.Fatal(). | 			log.Fatal(). | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user